Documentation ¶
Index ¶
- func AddCert(path, storeType, namedStore string, display bool) error
- func CheckNonErrNotExistError(err error) error
- func DeleteAllCerts(storeType, namedStore string, confirmed bool) error
- func DeleteCert(storeType, namedStore, cert string, confirmed bool) error
- func IsValidFileName(fileName string) bool
- func IsValidStoreType(storeType string) bool
- func ListCerts(root string, depth int) ([]string, error)
- func ShowCerts(certs []*x509.Certificate)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCert ¶
AddCert adds a single cert file at path to the trust store under dir truststore/x509/storeType/namedStore
func CheckNonErrNotExistError ¶
CheckNonErrNotExistError returns nil when no err or err is fs.ErrNotExist
func DeleteAllCerts ¶
DeleteAllCerts deletes all certificate files from the trust store under dir truststore/x509/storeType/namedStore
func DeleteCert ¶
DeleteCert deletes a specific certificate file from the trust store, namely truststore/x509/storeType/namedStore/cert
func IsValidFileName ¶
IsValidFileName checks if a file name is cross-platform compatible
func IsValidStoreType ¶
IsValidStoreType checks if storeType is supported
func ListCerts ¶
ListCerts walks through root and returns all x509 certificates in it, sub-dirs are ignored.
func ShowCerts ¶
func ShowCerts(certs []*x509.Certificate)
ShowCerts writes out details of certificates
Types ¶
This section is empty.