Documentation ¶
Index ¶
- func BuildCertificateChain(ca_path string, certificate []byte, subordinate_ca []byte) (*bytes.Buffer, *bytes.Buffer, *bytes.Buffer, error)
- func GenerateCSR(csr types.CertificateRequest) (*types.SigningRequest, error)
- func GetSubordinateCaParameters(service string) (*types.CertificateAuthority, error)
- func GetSubordinateCaPath(service string) (*string, *string, error)
- func ReturnPrivateKey(key types.AsymmetricKey) (any, error)
- func WriteKeyToFile(service string, privateKey types.AsymmetricKey) error
- func WriteSubordinateCaParameters(service string, caCertificate *x509.Certificate, ...) error
- type CSRGenerator
- type ECDSA
- type RSA
- type SigningRequestGeneratorECDSA
- func (e *SigningRequestGeneratorECDSA) Generate() (crypto.PrivateKey, error)
- func (e *SigningRequestGeneratorECDSA) KeyType() string
- func (e *SigningRequestGeneratorECDSA) MarshalPrivateKey(key crypto.PrivateKey) ([]byte, error)
- func (e *SigningRequestGeneratorECDSA) SupportsKeySize(size int) bool
- func (e *SigningRequestGeneratorECDSA) SupportsPublicKeyAlgorithm(algorithm x509.PublicKeyAlgorithm) bool
- func (e *SigningRequestGeneratorECDSA) SupportsSigningAlgorithm(algorithm x509.SignatureAlgorithm) bool
- type SigningRequestGeneratorRSA
- func (r *SigningRequestGeneratorRSA) Generate() (crypto.PrivateKey, error)
- func (r *SigningRequestGeneratorRSA) KeyType() string
- func (r *SigningRequestGeneratorRSA) MarshalPrivateKey(key crypto.PrivateKey) ([]byte, error)
- func (r *SigningRequestGeneratorRSA) SupportsKeySize(size int) bool
- func (r *SigningRequestGeneratorRSA) SupportsPublicKeyAlgorithm(algorithm x509.PublicKeyAlgorithm) bool
- func (r *SigningRequestGeneratorRSA) SupportsSigningAlgorithm(algorithm x509.SignatureAlgorithm) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCertificateChain ¶
func GenerateCSR ¶
func GenerateCSR(csr types.CertificateRequest) (*types.SigningRequest, error)
func GetSubordinateCaParameters ¶
func GetSubordinateCaParameters(service string) (*types.CertificateAuthority, error)
func ReturnPrivateKey ¶
func ReturnPrivateKey(key types.AsymmetricKey) (any, error)
func WriteKeyToFile ¶
func WriteKeyToFile(service string, privateKey types.AsymmetricKey) error
func WriteSubordinateCaParameters ¶
func WriteSubordinateCaParameters(service string, caCertificate *x509.Certificate, ca types.CertificateParameters, pca *acmpca.GetCertificateAuthorityCertificateOutput) error
Types ¶
type CSRGenerator ¶
type CSRGenerator interface { Generate() (crypto.PrivateKey, error) KeyType() string MarshalPrivateKey(key crypto.PrivateKey) ([]byte, error) SupportsPublicKeyAlgorithm(algorithm x509.PublicKeyAlgorithm) bool SupportsSigningAlgorithm(algorithm x509.SignatureAlgorithm) bool SupportsKeySize(size int) bool }
type SigningRequestGeneratorECDSA ¶
type SigningRequestGeneratorECDSA struct {
Curve int
}
func (*SigningRequestGeneratorECDSA) Generate ¶
func (e *SigningRequestGeneratorECDSA) Generate() (crypto.PrivateKey, error)
ECDSA Interface
func (*SigningRequestGeneratorECDSA) KeyType ¶
func (e *SigningRequestGeneratorECDSA) KeyType() string
func (*SigningRequestGeneratorECDSA) MarshalPrivateKey ¶
func (e *SigningRequestGeneratorECDSA) MarshalPrivateKey(key crypto.PrivateKey) ([]byte, error)
func (*SigningRequestGeneratorECDSA) SupportsKeySize ¶
func (e *SigningRequestGeneratorECDSA) SupportsKeySize(size int) bool
func (*SigningRequestGeneratorECDSA) SupportsPublicKeyAlgorithm ¶
func (e *SigningRequestGeneratorECDSA) SupportsPublicKeyAlgorithm(algorithm x509.PublicKeyAlgorithm) bool
func (*SigningRequestGeneratorECDSA) SupportsSigningAlgorithm ¶
func (e *SigningRequestGeneratorECDSA) SupportsSigningAlgorithm(algorithm x509.SignatureAlgorithm) bool
type SigningRequestGeneratorRSA ¶
type SigningRequestGeneratorRSA struct {
Size int
}
func (*SigningRequestGeneratorRSA) Generate ¶
func (r *SigningRequestGeneratorRSA) Generate() (crypto.PrivateKey, error)
RSA Interface
func (*SigningRequestGeneratorRSA) KeyType ¶
func (r *SigningRequestGeneratorRSA) KeyType() string
func (*SigningRequestGeneratorRSA) MarshalPrivateKey ¶
func (r *SigningRequestGeneratorRSA) MarshalPrivateKey(key crypto.PrivateKey) ([]byte, error)
func (*SigningRequestGeneratorRSA) SupportsKeySize ¶
func (r *SigningRequestGeneratorRSA) SupportsKeySize(size int) bool
func (*SigningRequestGeneratorRSA) SupportsPublicKeyAlgorithm ¶
func (r *SigningRequestGeneratorRSA) SupportsPublicKeyAlgorithm(algorithm x509.PublicKeyAlgorithm) bool
func (*SigningRequestGeneratorRSA) SupportsSigningAlgorithm ¶
func (r *SigningRequestGeneratorRSA) SupportsSigningAlgorithm(algorithm x509.SignatureAlgorithm) bool
Click to show internal directories.
Click to hide internal directories.