Documentation
¶
Index ¶
- func CheckCertStatus(certPath string) (bool, error)
- func CheckFirefoxCert() (bool, error)
- func ClearPAC()
- func ForceInstallCert(certPath string) (bool, error)
- func GetCertFingerprint(certPath string) (string, error)
- func GetCertFingerprintFromPEM(pemData []byte) (string, error)
- func GetCertFingerprintSHA1(certPath string) (string, error)
- func HasTool(name string) bool
- func InstallCert(certPath string) (bool, error)
- func InstallChromeCert(certPath string) error
- func InstallFirefoxCert(certPath string) error
- func IsSystemProxySet() bool
- func SetPAC(pacURL string)
- func UninstallCert(certPath string) error
- func UninstallChromeCert()
- func UninstallFirefoxCert() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCertStatus ¶
CheckCertStatus checks if the CA certificate is installed in the system trust store.
func CheckFirefoxCert ¶
CheckFirefoxCert checks if the CA is installed in any Firefox profile
func ForceInstallCert ¶
ForceInstallCert forces re-installation of the CA certificate.
func GetCertFingerprint ¶
GetCertFingerprint returns the SHA256 fingerprint of a certificate file.
func GetCertFingerprintFromPEM ¶
GetCertFingerprintFromPEM returns the SHA256 fingerprint of a PEM-encoded certificate.
func GetCertFingerprintSHA1 ¶
GetCertFingerprintSHA1 returns the SHA1 fingerprint of a certificate file.
func InstallCert ¶
InstallCert installs the CA certificate to the system trust store. Returns true if newly installed, false if already present.
func InstallChromeCert ¶
InstallChromeCert installs the CA certificate to Chrome/Chromium's NSS database (~/.pki/nssdb).
func InstallFirefoxCert ¶
InstallFirefoxCert installs the CA certificate to all Firefox-based browser profiles Supports: Firefox, Zen Browser, Waterfox, LibreWolf, Floorp
func IsSystemProxySet ¶
func IsSystemProxySet() bool
func UninstallCert ¶
UninstallCert removes the CA certificate from the system trust store.
func UninstallChromeCert ¶
func UninstallChromeCert()
UninstallChromeCert removes the CA certificate from Chrome/Chromium's NSS database.
func UninstallFirefoxCert ¶
func UninstallFirefoxCert() error
UninstallFirefoxCert removes the CA certificate from all Firefox profiles
Types ¶
This section is empty.