Documentation ¶
Index ¶
- Variables
- type PKIService
- func (service *PKIService) GetCACertificate(caName string) (*x509.Certificate, error)
- func (service *PKIService) GetClientKeyPair(caName string, subject string, emailAddresses []string, expiry time.Time) (*rsa.PrivateKey, *x509.Certificate, error)
- func (service *PKIService) GetClientTLSCertificate(caName string, subject string, expiry time.Time) (tls.Certificate, error)
- func (service *PKIService) GetKeyPairImpl(caName string, subject string, ipAddresses []net.IP, emailAddresses []string, ...) (*rsa.PrivateKey, *x509.Certificate, error)
- func (service *PKIService) GetServerKeyPair(caName string, subject string, ipAddresses []net.IP, expiry time.Time) (*rsa.PrivateKey, *x509.Certificate, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type PKIService ¶
func NewPKIService ¶
func NewPKIService(easyPKI *easypki.EasyPKI) *PKIService
func (*PKIService) GetCACertificate ¶
func (service *PKIService) GetCACertificate(caName string) (*x509.Certificate, error)
func (*PKIService) GetClientKeyPair ¶
func (service *PKIService) GetClientKeyPair( caName string, subject string, emailAddresses []string, expiry time.Time, ) (*rsa.PrivateKey, *x509.Certificate, error)
func (*PKIService) GetClientTLSCertificate ¶
func (service *PKIService) GetClientTLSCertificate( caName string, subject string, expiry time.Time, ) (tls.Certificate, error)
func (*PKIService) GetKeyPairImpl ¶
func (service *PKIService) GetKeyPairImpl( caName string, subject string, ipAddresses []net.IP, emailAddresses []string, expiry time.Time, ) (*rsa.PrivateKey, *x509.Certificate, error)
func (*PKIService) GetServerKeyPair ¶
func (service *PKIService) GetServerKeyPair( caName string, subject string, ipAddresses []net.IP, expiry time.Time, ) (*rsa.PrivateKey, *x509.Certificate, error)
Click to show internal directories.
Click to hide internal directories.