AnchorCertGenerator
[source]¶Bases: octavia.certificates.generator.local.LocalCertGenerator
Cert Generator Interface that signs certs with Anchor.
sign_cert
(csr, validity=None, **kwargs)[source]¶Signs a certificate using Anchor based on the specified CSR
Parameters: |
|
---|---|
Returns: | Signed certificate |
Raises: | Exception – if certificate signing fails |
AnchorException
(*args, **kwargs)[source]¶Bases: octavia.common.exceptions.CertificateGenerationException
Certificate Generator API
CertGenerator
[source]¶Bases: object
Base Cert Generator Interface
A Certificate Generator is responsible for generating private keys, generating CSRs, and signing TLS certificates.
generate_cert_key_pair
(cn, validity, bit_length, passphrase)[source]¶Generates a private key and certificate pair
Parameters: |
|
---|---|
Returns: | octavia.certificates.common.Cert representation of the certificate data |
Raises: | Exception – If generation fails |
sign_cert
(csr, validity)[source]¶Generates a signed certificate from the provided CSR
This call is designed to block until a signed certificate can be returned.
Parameters: |
|
---|---|
Returns: | PEM Encoded Signed certificate |
Raises: | Exception – If certificate signing fails |
LocalCertGenerator
[source]¶Bases: octavia.certificates.generator.cert_gen.CertGenerator
Cert Generator Interface that signs certs locally.
generate_cert_key_pair
(cn, validity, bit_length=2048, passphrase=None, **kwargs)[source]¶Generates a private key and certificate pair
Parameters: |
|
---|---|
Returns: | octavia.certificates.common.Cert representation of the certificate data |
Raises: | Exception – If generation fails |
sign_cert
(csr, validity, ca_cert=None, ca_key=None, ca_key_pass=None, ca_digest=None)[source]¶Signs a certificate using our private CA based on the specified CSR
The signed certificate will be valid from now until <validity> seconds from now.
Parameters: |
|
---|---|
Returns: | Signed certificate |
Raises: | Exception – if certificate signing fails |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.