Documentation ¶
Overview ¶
Package eidas provides tools for generating eIDAS OBWAC & OBSEAL certificate signing requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var QCStatementsExt = asn1.ObjectIdentifier{1, 3, 6, 1, 5, 5, 7, 1, 3}
QCStatementsExt represents the qcstatements x509 extension id.
Functions ¶
func GenerateCSR ¶
func GenerateCSR( countryCode string, orgName string, orgID string, commonName string, roles []qcstatements.Role, qcType asn1.ObjectIdentifier, opts ...CertificateOption) ([]byte, *rsa.PrivateKey, error)
GenerateCSR generates an RSA key and builds a certificate signing request for an organization. qcType should be one of qcstatements.QSEALType or qcstatements.QWACType.
func GenerateCSRWithKey ¶
func GenerateCSRWithKey( countryCode string, orgName string, orgID string, commonName string, roles []qcstatements.Role, qcType asn1.ObjectIdentifier, priv crypto.Signer, opts ...CertificateOption) ([]byte, error)
GenerateCSRWithKey builds a certificate signing request for an organization based on an existing private key. qcType should be one of qcstatements.QSEALType or qcstatements.QWACType.
Types ¶
type CertificateOption ¶
type CertificateOption func(*x509.CertificateRequest)
func WithDNSName ¶
func WithDNSName(domain string) CertificateOption
WithDNSName adds the given domain as a Subject Alternate Name to the CSR.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package qcstatements contains functions for building and extracting qualified statements for PSD2 qualified certificates.
|
Package qcstatements contains functions for building and extracting qualified statements for PSD2 qualified certificates. |
Click to show internal directories.
Click to hide internal directories.