cert_provider.go 569 B

1234567891011121314151617
  1. // Package ca provides the CertificateAuthority interface for the
  2. // transport package, which provides an interface to get a CSR signed
  3. // by some certificate authority.
  4. package ca
  5. // A CertificateAuthority is capable of signing certificates given
  6. // certificate signing requests.
  7. type CertificateAuthority interface {
  8. // SignCSR submits a PKCS #10 certificate signing request to a
  9. // CA for signing.
  10. SignCSR(csrPEM []byte) (cert []byte, err error)
  11. // CACertificate returns the certificate authority's
  12. // certificate.
  13. CACertificate() (cert []byte, err error)
  14. }