Documentation ¶
Index ¶
- func CertInKeychain() bool
- func DeleteCertificates(certDir *paths.Path)
- func GenerateAndInstallCertificates(certDir *paths.Path)
- func GenerateCertificates(certsDir *paths.Path)
- func GetDefaultBrowserName() string
- func GetExpirationDate() (time.Time, error)
- func InstallCertificate(cert *paths.Path) error
- func IsExpired() (bool, error)
- func MigrateCertificatesGeneratedWithOldAgentVersions(certsDir *paths.Path)
- func UninstallCertificates() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertInKeychain ¶
func CertInKeychain() bool
CertInKeychain won't do anything on unsupported Operative Systems
func DeleteCertificates ¶
func DeleteCertificates(certDir *paths.Path)
DeleteCertificates will delete the certificates
func GenerateAndInstallCertificates ¶
func GenerateAndInstallCertificates(certDir *paths.Path)
GenerateAndInstallCertificates generates and installs the certificates
func GenerateCertificates ¶
func GenerateCertificates(certsDir *paths.Path)
GenerateCertificates will generate the required certificates useful for a HTTPS connection on localhost
func GetDefaultBrowserName ¶
func GetDefaultBrowserName() string
GetDefaultBrowserName won't do anything on unsupported Operative Systems
func GetExpirationDate ¶
GetExpirationDate won't do anything on unsupported Operative Systems
func InstallCertificate ¶
func InstallCertificate(cert *paths.Path) error
InstallCertificate won't do anything on unsupported Operative Systems
func IsExpired ¶
IsExpired checks if a certificate is expired or about to expire (less than 1 month)
func MigrateCertificatesGeneratedWithOldAgentVersions ¶
func MigrateCertificatesGeneratedWithOldAgentVersions(certsDir *paths.Path)
MigrateCertificatesGeneratedWithOldAgentVersions checks if certificates generated with an old version of the Agent needs to be migrated to the current certificates directory, and performs the migration if needed.
func UninstallCertificates ¶
func UninstallCertificates() error
UninstallCertificates won't do anything on unsupported Operative Systems
Types ¶
This section is empty.