Documentation ¶
Rendered for windows/amd64
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstallationConfig ¶
type PowerShell ¶
type PowerShell struct {
// contains filtered or unexported fields
}
PowerShell represents the powershell program in Windows. It is used to execute any script on it
func (PowerShell) InstallCertificateToCAPI ¶
func (ps PowerShell) InstallCertificateToCAPI(config InstallationConfig) error
InstallCertificateToCAPI takes a config object and uses it to install a new certificate in the local machine CAPI store
func (PowerShell) RetrieveCertificateFromCAPI ¶
func (ps PowerShell) RetrieveCertificateFromCAPI(config InstallationConfig) (string, error)
RetrieveCertificateFromCAPI looks for a certificate in the CAPI store config.CertStore that matches the given config.FriendlyName. If found, it returns the certificate in PEM format as a string
Click to show internal directories.
Click to hide internal directories.