sysproxy

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCertStatus

func CheckCertStatus(certPath string) (bool, error)

CheckCertStatus checks if the CA certificate is installed in the system trust store.

func CheckFirefoxCert

func CheckFirefoxCert() (bool, error)

CheckFirefoxCert checks if the CA is installed in any Firefox profile

func ClearPAC

func ClearPAC()

ClearPAC removes the system proxy auto-config URL.

func ForceInstallCert

func ForceInstallCert(certPath string) (bool, error)

ForceInstallCert forces re-installation of the CA certificate.

func GetCertFingerprint

func GetCertFingerprint(certPath string) (string, error)

GetCertFingerprint returns the SHA256 fingerprint of a certificate file.

func GetCertFingerprintFromPEM

func GetCertFingerprintFromPEM(pemData []byte) (string, error)

GetCertFingerprintFromPEM returns the SHA256 fingerprint of a PEM-encoded certificate.

func GetCertFingerprintSHA1

func GetCertFingerprintSHA1(certPath string) (string, error)

GetCertFingerprintSHA1 returns the SHA1 fingerprint of a certificate file.

func HasTool

func HasTool(name string) bool

HasTool checks if a system tool is available in PATH

func InstallCert

func InstallCert(certPath string) (bool, error)

InstallCert installs the CA certificate to the system trust store. Returns true if newly installed, false if already present.

func InstallChromeCert

func InstallChromeCert(certPath string) error

InstallChromeCert installs the CA certificate to Chrome/Chromium's NSS database (~/.pki/nssdb).

func InstallFirefoxCert

func InstallFirefoxCert(certPath string) error

InstallFirefoxCert installs the CA certificate to all Firefox-based browser profiles Supports: Firefox, Zen Browser, Waterfox, LibreWolf, Floorp

func IsSystemProxySet

func IsSystemProxySet() bool

func SetPAC

func SetPAC(pacURL string)

SetPAC sets the system proxy auto-config URL.

func UninstallCert

func UninstallCert(certPath string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL