Documentation ¶
Index ¶
- func DecodeRequest(req *proto.X509CertificateSigningRequest) (*x509.Certificate, error)
- func GenCACert(config *crypki.CAConfig, signer crypto.Signer, hostname string, ips []net.IP, ...) ([]byte, error)
- func GetPublicKeyAlgorithm(pka crypki.PublicKeyAlgorithm) x509.PublicKeyAlgorithm
- func GetSignatureAlgorithm(sa crypki.SignatureAlgorithm) x509.SignatureAlgorithm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeRequest ¶
func DecodeRequest(req *proto.X509CertificateSigningRequest) (*x509.Certificate, error)
DecodeRequest process the X509CertificateSigningRequest and returns an (unsigned) x509 certificate.
func GenCACert ¶
func GenCACert(config *crypki.CAConfig, signer crypto.Signer, hostname string, ips []net.IP, pka crypki.PublicKeyAlgorithm, sa crypki.SignatureAlgorithm) ([]byte, error)
GenCACert creates the CA certificate given signer.
func GetPublicKeyAlgorithm ¶ added in v1.7.1
func GetPublicKeyAlgorithm(pka crypki.PublicKeyAlgorithm) x509.PublicKeyAlgorithm
GetPublicKeyAlgorithm returns the x509 Public algorithm corresponding to the public key algorithm received as part of CSR.
func GetSignatureAlgorithm ¶ added in v1.7.1
func GetSignatureAlgorithm(sa crypki.SignatureAlgorithm) x509.SignatureAlgorithm
GetSignatureAlgorithm returns x509 Signature algorithm corresponding to signature algorithm received as part of CSR.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.