Documentation
¶
Overview ¶
Package pkcs11 is a coupled package that interacts with the PKCS#11 interface of a library specified through viper configuration; it fetches the key pair and their corresponding certificate which are specified by viper configuration (see the conf.go file in this package); it also exposes the *crypto11.Context under use.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCrypt11Ctx ¶
func GetKert ¶
func GetKert(kertId []byte, kertLabel string) (pvKey crypto.PrivateKey, pubKey crypto.PublicKey, cert *x509.Certificate, err error)
func GetKertByConf ¶
func GetKertByConf() (pvKey crypto.PrivateKey, pubKey crypto.PublicKey, cert *x509.Certificate, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.