Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Uses your private certificate authority (CA) to issue a client certificate. This function returns the Amazon Resource Name (ARN) of the certificate. You can retrieve the certificate by calling the GetCertificate
function and specifying the ARN.
- issueCertificate :: Text -> ByteString -> SigningAlgorithm -> Validity -> IssueCertificate
- data IssueCertificate
- icIdempotencyToken :: Lens' IssueCertificate (Maybe Text)
- icCertificateAuthorityARN :: Lens' IssueCertificate Text
- icCSR :: Lens' IssueCertificate ByteString
- icSigningAlgorithm :: Lens' IssueCertificate SigningAlgorithm
- icValidity :: Lens' IssueCertificate Validity
- issueCertificateResponse :: Int -> IssueCertificateResponse
- data IssueCertificateResponse
- icrsCertificateARN :: Lens' IssueCertificateResponse (Maybe Text)
- icrsResponseStatus :: Lens' IssueCertificateResponse Int
Creating a Request
:: Text | |
-> ByteString | |
-> SigningAlgorithm | |
-> Validity | |
-> IssueCertificate |
Creates a value of IssueCertificate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
icIdempotencyToken
- Custom string that can be used to distinguish between calls to the IssueCertificate function. Idempotency tokens time out after one hour. Therefore, if you call IssueCertificate multiple times with the same idempotency token within 5 minutes, ACM PCA recognizes that you are requesting only one certificate and will issue only one. If you change the idempotency token for each call, PCA recognizes that you are requesting multiple certificates.icCertificateAuthorityARN
- The Amazon Resource Name (ARN) that was returned when you calledCreateCertificateAuthority
. This must be of the form:arn:aws:acm:region :account :certificate-authority/12345678-1234-1234-1234-123456789012
icCSR
- The certificate signing request (CSR) for the certificate you want to issue. You can use the following OpenSSL command to create the CSR and a 2048 bit RSA private key.openssl req -new -newkey rsa:2048 -days 365 -keyout privatetest_cert_priv_key.pem -out csrtest_cert_.csr
If you have a configuration file, you can use the following OpenSSL command. Theusr_cert
block in the configuration file contains your X509 version 3 extensions.openssl req -new -config openssl_rsa.cnf -extensions usr_cert -newkey rsa:2048 -days -365 -keyout privatetest_cert_priv_key.pem -out csrtest_cert_.csr
-- Note: ThisLens
automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. ThisLens
accepts and returns only raw unencoded data.icSigningAlgorithm
- The name of the algorithm that will be used to sign the certificate to be issued.icValidity
- The type of the validity period.
data IssueCertificate Source #
See: issueCertificate
smart constructor.
Request Lenses
icIdempotencyToken :: Lens' IssueCertificate (Maybe Text) Source #
Custom string that can be used to distinguish between calls to the IssueCertificate function. Idempotency tokens time out after one hour. Therefore, if you call IssueCertificate multiple times with the same idempotency token within 5 minutes, ACM PCA recognizes that you are requesting only one certificate and will issue only one. If you change the idempotency token for each call, PCA recognizes that you are requesting multiple certificates.
icCertificateAuthorityARN :: Lens' IssueCertificate Text Source #
The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority
. This must be of the form: arn:aws:acm:region :account :certificate-authority/12345678-1234-1234-1234-123456789012
icCSR :: Lens' IssueCertificate ByteString Source #
The certificate signing request (CSR) for the certificate you want to issue. You can use the following OpenSSL command to create the CSR and a 2048 bit RSA private key. openssl req -new -newkey rsa:2048 -days 365 -keyout privatetest_cert_priv_key.pem -out csrtest_cert_.csr
If you have a configuration file, you can use the following OpenSSL command. The usr_cert
block in the configuration file contains your X509 version 3 extensions. openssl req -new -config openssl_rsa.cnf -extensions usr_cert -newkey rsa:2048 -days -365 -keyout privatetest_cert_priv_key.pem -out csrtest_cert_.csr
-- Note: This Lens
automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This Lens
accepts and returns only raw unencoded data.
icSigningAlgorithm :: Lens' IssueCertificate SigningAlgorithm Source #
The name of the algorithm that will be used to sign the certificate to be issued.
icValidity :: Lens' IssueCertificate Validity Source #
The type of the validity period.
Destructuring the Response
issueCertificateResponse Source #
Creates a value of IssueCertificateResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
icrsCertificateARN
- The Amazon Resource Name (ARN) of the issued certificate and the certificate serial number. This is of the form:arn:aws:acm:region :account :certificate-authority/12345678-1234-1234-1234-123456789012 certificate286535153982981100925020015808220737245
icrsResponseStatus
- -- | The response status code.
data IssueCertificateResponse Source #
See: issueCertificateResponse
smart constructor.
Response Lenses
icrsCertificateARN :: Lens' IssueCertificateResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the issued certificate and the certificate serial number. This is of the form: arn:aws:acm:region :account :certificate-authority/12345678-1234-1234-1234-123456789012 certificate286535153982981100925020015808220737245
icrsResponseStatus :: Lens' IssueCertificateResponse Int Source #
- - | The response status code.