• 沒有找到結果。

AWS Private CA

N/A
N/A
Protected

Academic year: 2022

Share "AWS Private CA"

Copied!
140
0
0

加載中.... (立即查看全文)

全文

(1)

AWS Private CA

API Reference

API Version 2017-08-22

(2)

AWS Private CA: API Reference

Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved.

Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon.

(3)

Table of Contents

Welcome ... 1

Actions ... 2

CreateCertificateAuthority ... 3

Request Syntax ... 3

Request Parameters ... 4

Response Syntax ... 6

Response Elements ... 6

Errors ... 6

Examples ... 7

See Also ... 8

CreateCertificateAuthorityAuditReport ... 9

Request Syntax ... 9

Request Parameters ... 9

Response Syntax ... 10

Response Elements ... 10

Errors ... 10

Examples ... 11

See Also ... 12

CreatePermission ... 13

Request Syntax ... 13

Request Parameters ... 13

Response Elements ... 14

Errors ... 14

Examples ... 15

See Also ... 16

DeleteCertificateAuthority ... 17

Request Syntax ... 17

Request Parameters ... 17

Response Elements ... 18

Errors ... 18

Examples ... 18

See Also ... 19

DeletePermission ... 20

Request Syntax ... 20

Request Parameters ... 20

Response Elements ... 21

Errors ... 21

See Also ... 21

DeletePolicy ... 23

Request Syntax ... 23

Request Parameters ... 23

Response Elements ... 24

Errors ... 24

See Also ... 24

DescribeCertificateAuthority ... 26

Request Syntax ... 26

Request Parameters ... 26

Response Syntax ... 26

Response Elements ... 28

Errors ... 28

Examples ... 29

See Also ... 30

DescribeCertificateAuthorityAuditReport ... 31

Request Syntax ... 31

(4)

Request Parameters ... 31

Response Syntax ... 31

Response Elements ... 32

Errors ... 32

Examples ... 33

See Also ... 33

GetCertificate ... 35

Request Syntax ... 35

Request Parameters ... 35

Response Syntax ... 36

Response Elements ... 36

Errors ... 36

Examples ... 37

See Also ... 37

GetCertificateAuthorityCertificate ... 39

Request Syntax ... 39

Request Parameters ... 39

Response Syntax ... 39

Response Elements ... 39

Errors ... 40

Examples ... 40

See Also ... 41

GetCertificateAuthorityCsr ... 42

Request Syntax ... 42

Request Parameters ... 42

Response Syntax ... 42

Response Elements ... 42

Errors ... 43

Examples ... 43

See Also ... 44

GetPolicy ... 45

Request Syntax ... 45

Request Parameters ... 45

Response Syntax ... 45

Response Elements ... 46

Errors ... 46

See Also ... 46

ImportCertificateAuthorityCertificate ... 48

Request Syntax ... 49

Request Parameters ... 49

Response Elements ... 50

Errors ... 50

Examples ... 51

See Also ... 51

IssueCertificate ... 53

Request Syntax ... 53

Request Parameters ... 54

Response Syntax ... 57

Response Elements ... 57

Errors ... 57

Examples ... 58

See Also ... 59

ListCertificateAuthorities ... 60

Request Syntax ... 60

Request Parameters ... 60

Response Syntax ... 60

Response Elements ... 62

(5)

Errors ... 62

Examples ... 63

See Also ... 65

ListPermissions ... 66

Request Syntax ... 66

Request Parameters ... 66

Response Syntax ... 67

Response Elements ... 67

Errors ... 68

Examples ... 68

See Also ... 69

ListTags ... 70

Request Syntax ... 70

Request Parameters ... 70

Response Syntax ... 71

Response Elements ... 71

Errors ... 71

Examples ... 72

See Also ... 72

PutPolicy ... 74

Request Syntax ... 74

Request Parameters ... 74

Response Elements ... 75

Errors ... 75

Examples ... 76

See Also ... 76

RestoreCertificateAuthority ... 78

Request Syntax ... 78

Request Parameters ... 78

Response Elements ... 78

Errors ... 78

Examples ... 79

See Also ... 79

RevokeCertificate ... 81

Request Syntax ... 81

Request Parameters ... 81

Response Elements ... 82

Errors ... 82

Examples ... 83

See Also ... 84

TagCertificateAuthority ... 85

Request Syntax ... 85

Request Parameters ... 85

Response Elements ... 85

Errors ... 86

Examples ... 86

See Also ... 87

UntagCertificateAuthority ... 88

Request Syntax ... 88

Request Parameters ... 88

Response Elements ... 88

Errors ... 89

Examples ... 89

See Also ... 90

UpdateCertificateAuthority ... 91

Request Syntax ... 91

Request Parameters ... 91

(6)

Response Elements ... 92

Errors ... 92

Examples ... 93

See Also ... 93

Data Types ... 95

AccessDescription ... 96

Contents ... 96

See Also ... 96

AccessMethod ... 97

Contents ... 97

See Also ... 97

ApiPassthrough ... 98

Contents ... 98

See Also ... 98

ASN1Subject ... 99

Contents ... 99

See Also ... 101

CertificateAuthority ... 102

Contents ... 102

See Also ... 104

CertificateAuthorityConfiguration ... 105

Contents ... 105

See Also ... 105

CrlConfiguration ... 107

Contents ... 108

See Also ... 109

CsrExtensions ... 110

Contents ... 110

See Also ... 110

EdiPartyName ... 111

Contents ... 111

See Also ... 111

ExtendedKeyUsage ... 112

Contents ... 112

See Also ... 112

Extensions ... 113

Contents ... 113

See Also ... 113

GeneralName ... 115

Contents ... 115

See Also ... 116

KeyUsage ... 117

Contents ... 117

See Also ... 118

OcspConfiguration ... 119

Contents ... 119

See Also ... 119

OtherName ... 120

Contents ... 120

See Also ... 120

Permission ... 121

Contents ... 121

See Also ... 122

PolicyInformation ... 123

Contents ... 123

See Also ... 123

PolicyQualifierInfo ... 124

(7)

Contents ... 124

See Also ... 124

Qualifier ... 125

Contents ... 125

See Also ... 125

RevocationConfiguration ... 126

Contents ... 126

See Also ... 126

Tag ... 127

Contents ... 127

See Also ... 127

Validity ... 128

Contents ... 128

See Also ... 129

Common Parameters ... 130

Common Errors ... 132

(8)

Welcome

This is the ACM Private CA API Reference. It provides descriptions, syntax, and usage examples for each of the actions and data types involved in creating and managing private certificate authorities (CA) for your organization.

The documentation for each action shows the Query API request parameters and the XML response.

Alternatively, you can use one of the AWS SDKs to access an API that's tailored to the programming language or platform that you're using. For more information, see AWS SDKs.

Each ACM Private CA API operation has a quota that determines the number of times the operation can be called per second. ACM Private CA throttles API requests at different rates depending on the operation. Throttling means that ACM Private CA rejects an otherwise valid request because the request exceeds the operation's quota for the number of requests per second. When a request is throttled, ACM Private CA returns a ThrottlingException error. ACM Private CA does not guarantee a minimum request rate for APIs.

To see an up-to-date list of your ACM Private CA quotas, or to request a quota increase, log into your AWS account and visit the Service Quotas console.

This document was last published on March 6, 2022.

(9)

Actions

The following actions are supported:

• CreateCertificateAuthority (p. 3)

• CreateCertificateAuthorityAuditReport (p. 9)

• CreatePermission (p. 13)

• DeleteCertificateAuthority (p. 17)

• DeletePermission (p. 20)

• DeletePolicy (p. 23)

• DescribeCertificateAuthority (p. 26)

• DescribeCertificateAuthorityAuditReport (p. 31)

• GetCertificate (p. 35)

• GetCertificateAuthorityCertificate (p. 39)

• GetCertificateAuthorityCsr (p. 42)

• GetPolicy (p. 45)

• ImportCertificateAuthorityCertificate (p. 48)

• IssueCertificate (p. 53)

• ListCertificateAuthorities (p. 60)

• ListPermissions (p. 66)

• ListTags (p. 70)

• PutPolicy (p. 74)

• RestoreCertificateAuthority (p. 78)

• RevokeCertificate (p. 81)

• TagCertificateAuthority (p. 85)

• UntagCertificateAuthority (p. 88)

• UpdateCertificateAuthority (p. 91)

(10)

CreateCertificateAuthority

CreateCertificateAuthority

Creates a root or subordinate private certificate authority (CA). You must specify the CA configuration, an optional configuration for Online Certificate Status Protocol (OCSP) and/or a certificate revocation list (CRL), the CA type, and an optional idempotency token to avoid accidental creation of multiple CAs. The CA configuration specifies the name of the algorithm and key size to be used to create the CA private key, the type of signing algorithm that the CA uses, and X.500 subject information. The OCSP configuration can optionally specify a custom URL for the OCSP responder. The CRL configuration specifies the CRL expiration period in days (the validity period of the CRL), the Amazon S3 bucket that will contain the CRL, and a CNAME alias for the S3 bucket that is included in certificates issued by the CA.

If successful, this action returns the Amazon Resource Name (ARN) of the CA.

ACM Private CA assets that are stored in Amazon S3 can be protected with encryption. For more information, see Encrypting Your CRLs.

NoteBoth PCA and the IAM principal must have permission to write to the S3 bucket that you specify.

If the IAM principal making the call does not have permission to write to the bucket, then an exception is thrown. For more information, see Access policies for CRLs in Amazon S3.

Request Syntax

{ "CertificateAuthorityConfiguration": { "CsrExtensions": {

"KeyUsage": {

"CRLSign": boolean,

"DataEncipherment": boolean, "DecipherOnly": boolean, "DigitalSignature": boolean, "EncipherOnly": boolean, "KeyAgreement": boolean, "KeyCertSign": boolean, "KeyEncipherment": boolean, "NonRepudiation": boolean },

"SubjectInformationAccess": [ {

"AccessLocation": { "DirectoryName": { "CommonName": "string", "Country": "string",

"DistinguishedNameQualifier": "string", "GenerationQualifier": "string", "GivenName": "string",

"Initials": "string", "Locality": "string", "Organization": "string", "OrganizationalUnit": "string", "Pseudonym": "string",

"SerialNumber": "string", "State": "string", "Surname": "string", "Title": "string"

},

"DnsName": "string", "EdiPartyName": {

"NameAssigner": "string", "PartyName": "string"

},

"IpAddress": "string",

(11)

Request Parameters

"OtherName": { "TypeId": "string", "Value": "string"

},

"RegisteredId": "string", "Rfc822Name": "string",

"UniformResourceIdentifier": "string"

},

"AccessMethod": {

"AccessMethodType": "string", "CustomObjectIdentifier": "string"

} } ] },

"KeyAlgorithm": "string", "SigningAlgorithm": "string", "Subject": {

"CommonName": "string", "Country": "string",

"DistinguishedNameQualifier": "string", "GenerationQualifier": "string",

"GivenName": "string", "Initials": "string", "Locality": "string", "Organization": "string", "OrganizationalUnit": "string", "Pseudonym": "string",

"SerialNumber": "string", "State": "string", "Surname": "string", "Title": "string"

} },

"CertificateAuthorityType": "string", "IdempotencyToken": "string",

"KeyStorageSecurityStandard": "string", "RevocationConfiguration": {

"CrlConfiguration": { "CustomCname": "string", "Enabled": boolean,

"ExpirationInDays": number, "S3BucketName": "string", "S3ObjectAcl": "string"

},

"OcspConfiguration": { "Enabled": boolean,

"OcspCustomCname": "string"

} },

"Tags": [ {

"Key": "string", "Value": "string"

} ] }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 130).

The request accepts the following data in JSON format.

(12)

Request Parameters

CertificateAuthorityConfiguration (p. 3)

Name and bit size of the private key algorithm, the name of the signing algorithm, and X.500 certificate subject information.

Type: CertificateAuthorityConfiguration (p. 105) object Required: Yes

CertificateAuthorityType (p. 3)

The type of the certificate authority.

Type: String

Valid Values: ROOT | SUBORDINATE Required: Yes

IdempotencyToken (p. 3)

Custom string that can be used to distinguish between calls to the CreateCertificateAuthority action. Idempotency tokens for CreateCertificateAuthority time out after five minutes. Therefore, if you call CreateCertificateAuthority multiple times with the same idempotency token within five minutes, ACM Private CA recognizes that you are requesting only certificate authority and will issue only one. If you change the idempotency token for each call, PCA recognizes that you are requesting multiple certificate authorities.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 36.

Pattern: [\u0009\u000A\u000D\u0020-\u00FF]*

Required: No

KeyStorageSecurityStandard (p. 3)

Specifies a cryptographic key management compliance standard used for handling CA keys.

Default: FIPS_140_2_LEVEL_3_OR_HIGHER

Note: FIPS_140_2_LEVEL_3_OR_HIGHER is not supported in Region ap-northeast-3. When creating a CA in the ap-northeast-3, you must provide FIPS_140_2_LEVEL_2_OR_HIGHER as the argument for KeyStorageSecurityStandard. Failure to do this results in an

InvalidArgsException with the message, "A certificate authority cannot be created in this region with the specified security standard."

Type: String

Valid Values: FIPS_140_2_LEVEL_2_OR_HIGHER | FIPS_140_2_LEVEL_3_OR_HIGHER Required: No

RevocationConfiguration (p. 3)

Contains information to enable Online Certificate Status Protocol (OCSP) support, to enable a certificate revocation list (CRL), to enable both, or to enable neither. The default is for both certificate validation mechanisms to be disabled. For more information, see the OcspConfiguration and CrlConfiguration types.

Type: RevocationConfiguration (p. 126) object Required: No

(13)

Response Syntax

Tags (p. 3)

Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a private CA. For information using tags with IAM to manage permissions, see Controlling Access Using IAM Tags.

Type: Array of Tag (p. 127) objects

Array Members: Minimum number of 1 item. Maximum number of 50 items.

Required: No

Response Syntax

{ "CertificateAuthorityArn": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

CertificateAuthorityArn (p. 6)

If successful, the Amazon Resource Name (ARN) of the certificate authority (CA). This is of the form:

arn:aws:acm-pca:region:account:certificate- authority/12345678-1234-1234-1234-123456789012 . Type: String

Length Constraints: Minimum length of 5. Maximum length of 200.

Pattern: arn:[\w+=/,.@-]+:[\w+=/,.@-]+:[\w+=/,.@-]*:[0-9]*:[\w+=,.@-]+(/[\w +=,.@-]+)*

Errors

For information about the errors that are common to all actions, see Common Errors (p. 132).

InvalidArgsException

One or more of the specified arguments was not valid.

HTTP Status Code: 400 InvalidPolicyException

The resource policy is invalid or is missing a required statement. For general information about IAM policy and statement structure, see Overview of JSON Policies.

HTTP Status Code: 400 InvalidTagException

The tag associated with the CA is not valid. The invalid argument is contained in the message field.

(14)

Examples

HTTP Status Code: 400 LimitExceededException

An ACM Private CA quota has been exceeded. See the exception message returned to determine the quota that was exceeded.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of CreateCertificateAuthority.

Sample Request

POST / HTTP/1.1

Host: acm-pca.amazonaws.com Accept-Encoding: identity Content-Length: 512

X-Amz-Target: ACMPrivateCA.CreateCertificateAuthority X-Amz-Date: 20210310T165448Z

User-Agent: aws-cli/1.15.4 Python/2.7.9 Windows/8 botocore/1.10.4 Content-Type: application/x-amz-json-1.1

Authorization: AWS4-HMAC-SHA256 Credential=AWS_Access_Key_ID/20180515/AWS_Region/acm-pca/

aws4_request,

SignedHeaders=content-type;host;x-amz-date;x-amz-target,

Signature=6fc58aaf789659cb4e0dd0ba484a2562d982b6b8edd56ea0c5c94c2af9aeafbe {

"IdempotencyToken":"98256344",

"CertificateAuthorityConfiguration":{

"KeyAlgorithm":"RSA_2048",

"SigningAlgorithm":"SHA256WITHRSA", "Subject":{

"Locality":"Seattle", "Country":"US",

"CommonName":"www.example.com", "State":"WA",

"Organization":"Example Ltd.", "OrganizationalUnit":"Corporate"

} },

"CertificateAuthorityType":"SUBORDINATE", "RevocationConfiguration":{

"CrlConfiguration":{

"CustomCname":"CRL", "Enabled":true, "ExpirationInDays":7, "S3BucketName":"my-bucket"

},

"OcspConfiguration":{

"Enabled":false }

} }

Example

This example illustrates one usage of CreateCertificateAuthority.

(15)

See Also

Sample Response

HTTP/1.1 200 OK

Date: Tue, 10 March 2021 16:54:56 GMT Content-Type: application/x-amz-json-1.1 Content-Length: 127

x-amzn-RequestId: eacb346a-d80b-4be6-a1b2-1732c3ae3c38 Connection: keep-alive

{

"CertificateAuthorityArn": "arn:aws:acm-pca:region:account:certificate- authority/12345678-1234-1234-1234-123456789012"

}

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(16)

CreateCertificateAuthorityAuditReport

CreateCertificateAuthorityAuditReport

Creates an audit report that lists every time that your CA private key is used. The report is saved in the Amazon S3 bucket that you specify on input. The IssueCertificate and RevokeCertificate actions use the private key.

NoteBoth PCA and the IAM principal must have permission to write to the S3 bucket that you specify.

If the IAM principal making the call does not have permission to write to the bucket, then an exception is thrown. For more information, see Access policies for CRLs in Amazon S3.

ACM Private CA assets that are stored in Amazon S3 can be protected with encryption. For more information, see Encrypting Your Audit Reports.

Request Syntax

{ "AuditReportResponseFormat": "string", "CertificateAuthorityArn": "string", "S3BucketName": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 130).

The request accepts the following data in JSON format.

AuditReportResponseFormat (p. 9)

The format in which to create the report. This can be either JSON or CSV.

Type: String

Valid Values: JSON | CSV Required: Yes

CertificateAuthorityArn (p. 9)

The Amazon Resource Name (ARN) of the CA to be audited. This is of the form:

arn:aws:acm-pca:region:account:certificate- authority/12345678-1234-1234-1234-123456789012 . Type: String

Length Constraints: Minimum length of 5. Maximum length of 200.

Pattern: arn:[\w+=/,.@-]+:[\w+=/,.@-]+:[\w+=/,.@-]*:[0-9]*:[\w+=,.@-]+(/[\w +=,.@-]+)*

Required: Yes S3BucketName (p. 9)

The name of the S3 bucket that will contain the audit report.

(17)

Response Syntax

Type: String

Length Constraints: Minimum length of 3. Maximum length of 63.

Required: Yes

Response Syntax

{

"AuditReportId": "string", "S3Key": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

AuditReportId (p. 10)

An alphanumeric string that contains a report identifier.

Type: String

Length Constraints: Fixed length of 36.

Pattern: [a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}

S3Key (p. 10)

The key that uniquely identifies the report file in your S3 bucket.

Type: String

Length Constraints: Maximum length of 1024.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 132).

InvalidArgsException

One or more of the specified arguments was not valid.

HTTP Status Code: 400 InvalidArnException

The requested Amazon Resource Name (ARN) does not refer to an existing resource.

HTTP Status Code: 400 InvalidStateException

The state of the private CA does not allow this action to occur.

HTTP Status Code: 400

(18)

Examples

RequestFailedException

The request has failed for an unspecified reason.

HTTP Status Code: 400 RequestInProgressException

Your request is already in progress.

HTTP Status Code: 400 ResourceNotFoundException

A resource such as a private CA, S3 bucket, certificate, audit report, or policy cannot be found.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of CreateCertificateAuthorityAuditReport.

Sample Request

POST / HTTP/1.1

Host: acm-pca.amazonaws.com Accept-Encoding: identity Content-Length: 216

X-Amz-Target: ACMPrivateCA.CreateCertificateAuthorityAuditReport X-Amz-Date: 20180226T184819Z

User-Agent: aws-cli/1.14.28 Python/2.7.9 Windows/8 botocore/1.8.32 Content-Type: application/x-amz-json-1.1

Authorization: AWS4-HMAC-SHA256 Credential=AWS_Access_Key_ID/20180226/AWS_Region/acm-pca/

aws4_request,

SignedHeaders=content-type;host;x-amz-date;x-amz-target,

Signature=62380db816189148e510734f0ef2bfec08248fb3f447f64d740f31757e1beda0 {

"AuditReportResponseFormat": "JSON", "S3BucketName": "your-bucket-name",

"CertificateAuthorityArn": "arn:aws:acm-pca:region:account:certificate- authority/12345678-1234-1234-1234-123456789012"

}

Example

This example illustrates one usage of CreateCertificateAuthorityAuditReport.

Sample Response

HTTP/1.1 200 OK

Date: Tue, 15 May 2018 16:29:03 GMT Content-Type: application/x-amz-json-1.1 Content-Length: 158

x-amzn-RequestId: e8516078-ff66-4e2a-bc38-eb1aaae2d886 Connection: keep-alive

{

(19)

See Also

"AuditReportId": "9654b603-d6a9-4c57-952a-ebcc95631fab",

"S3Key": "audit-reportPCA_ID/9654b603-d6a9-4c57-952a-ebcc95631fab.json"

}

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(20)

CreatePermission

CreatePermission

Grants one or more permissions on a private CA to the AWS Certificate Manager (ACM) service principal (acm.amazonaws.com). These permissions allow ACM to issue and renew ACM certificates that reside in the same AWS account as the CA.

You can list current permissions with the ListPermissions action and revoke them with the DeletePermission action.

About Permissions

• If the private CA and the certificates it issues reside in the same account, you can use

CreatePermission to grant permissions for ACM to carry out automatic certificate renewals.

• For automatic certificate renewal to succeed, the ACM service principal needs permissions to create, retrieve, and list certificates.

• If the private CA and the ACM certificates reside in different accounts, then permissions cannot be used to enable automatic renewals. Instead, the ACM certificate owner must set up a resource-based policy to enable cross-account issuance and renewals. For more information, see Using a Resource Based Policy with ACM Private CA.

Request Syntax

{ "Actions": [ "string" ],

"CertificateAuthorityArn": "string", "Principal": "string",

"SourceAccount": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 130).

The request accepts the following data in JSON format.

Actions (p. 13)

The actions that the specified AWS service principal can use. These include IssueCertificate, GetCertificate, and ListPermissions.

Type: Array of strings

Array Members: Minimum number of 1 item. Maximum number of 3 items.

Valid Values: IssueCertificate | GetCertificate | ListPermissions Required: Yes

CertificateAuthorityArn (p. 13)

The Amazon Resource Name (ARN) of the CA that grants the permissions. You can find the ARN by calling the ListCertificateAuthorities action. This must have the following form:

arn:aws:acm-pca:region:account:certificate- authority/12345678-1234-1234-1234-123456789012 .

(21)

Response Elements

Type: String

Length Constraints: Minimum length of 5. Maximum length of 200.

Pattern: arn:[\w+=/,.@-]+:[\w+=/,.@-]+:[\w+=/,.@-]*:[0-9]*:[\w+=,.@-]+(/[\w +=,.@-]+)*

Required: Yes Principal (p. 13)

The AWS service or identity that receives the permission. At this time, the only valid principal is acm.amazonaws.com.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 128.

Pattern: ^[^*]+$

Required: Yes SourceAccount (p. 13)

The ID of the calling account.

Type: String

Length Constraints: Fixed length of 12.

Pattern: [0-9]+

Required: No

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 132).

InvalidArnException

The requested Amazon Resource Name (ARN) does not refer to an existing resource.

HTTP Status Code: 400 InvalidStateException

The state of the private CA does not allow this action to occur.

HTTP Status Code: 400 LimitExceededException

An ACM Private CA quota has been exceeded. See the exception message returned to determine the quota that was exceeded.

HTTP Status Code: 400

(22)

Examples

PermissionAlreadyExistsException

The designated permission has already been given to the user.

HTTP Status Code: 400 RequestFailedException

The request has failed for an unspecified reason.

HTTP Status Code: 400 ResourceNotFoundException

A resource such as a private CA, S3 bucket, certificate, audit report, or policy cannot be found.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of CreatePermission.

Sample Request

POST / HTTP/1.1

Host: acm.us-east-1.amazonaws.com

X-Amz-Target: CertificateManager.CreatePermission X-Amz-Date: 20190207T170903Z

User-Agent: aws-cli/1.10.20 Python/2.7.3 Linux/3.13.0-83-generic botocore/1.4.11 Content-Type: application/x-amz-json-1.1

Authorization: AUTHPARAMS,

SignedHeaders=content-type;host;user-agent;x-amz-date;x-amz-target, Signature=379429306c5e89b9b4be5b35e29c26cc1da38215d8055a5ed0bdda57bcc881cc {

"Actions": {

"IssueCertificate", "GetCertificate", "ListPermissions"

},

"CertificateArn":"arn:aws:acm:us-east-1:111122223333:certificate-authority/01234567-89ab- cdef-0123-0123456789ab",

"Principal":"acm.amazonaws.com", "SourceAccount":"012345678901"

}

Example

This example illustrates one usage of CreatePermission.

Sample Response

HTTP/1.1 200 OK

x-amzn-RequestId: 3c8d676d-025e-11e6-8823-93164b47113c Content-Type: application/x-amz-json-1.1

Content-Length: 0

Date: Thu, Feb 7 2019 17:09:05 GMT

(23)

See Also

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(24)

DeleteCertificateAuthority

DeleteCertificateAuthority

Deletes a private certificate authority (CA). You must provide the Amazon Resource Name (ARN) of the private CA that you want to delete. You can find the ARN by calling the ListCertificateAuthorities action.

NoteDeleting a CA will invalidate other CAs and certificates below it in your CA hierarchy.

Before you can delete a CA that you have created and activated, you must disable it. To do this, call the UpdateCertificateAuthority action and set the CertificateAuthorityStatus parameter to DISABLED.

Additionally, you can delete a CA if you are waiting for it to be created (that is, the status of the CA is CREATING). You can also delete it if the CA has been created but you haven't yet imported the signed certificate into ACM Private CA (that is, the status of the CA is PENDING_CERTIFICATE).

When you successfully call DeleteCertificateAuthority, the CA's status changes to DELETED. However, the CA won't be permanently deleted until the restoration period has passed. By default, if you do not set the PermanentDeletionTimeInDays parameter, the CA remains restorable for 30 days. You can set the parameter from 7 to 30 days. The DescribeCertificateAuthority action returns the time remaining in the restoration window of a private CA in the DELETED state. To restore an eligible CA, call the RestoreCertificateAuthority action.

Request Syntax

{

"CertificateAuthorityArn": "string", "PermanentDeletionTimeInDays": number }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 130).

The request accepts the following data in JSON format.

CertificateAuthorityArn (p. 17)

The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority.

This must have the following form:

arn:aws:acm-pca:region:account:certificate- authority/12345678-1234-1234-1234-123456789012 . Type: String

Length Constraints: Minimum length of 5. Maximum length of 200.

Pattern: arn:[\w+=/,.@-]+:[\w+=/,.@-]+:[\w+=/,.@-]*:[0-9]*:[\w+=,.@-]+(/[\w +=,.@-]+)*

Required: Yes

PermanentDeletionTimeInDays (p. 17)

The number of days to make a CA restorable after it has been deleted. This can be anywhere from 7 to 30 days, with 30 being the default.

(25)

Response Elements

Type: Integer

Valid Range: Minimum value of 7. Maximum value of 30.

Required: No

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 132).

ConcurrentModificationException

A previous update to your private CA is still ongoing.

HTTP Status Code: 400 InvalidArnException

The requested Amazon Resource Name (ARN) does not refer to an existing resource.

HTTP Status Code: 400 InvalidStateException

The state of the private CA does not allow this action to occur.

HTTP Status Code: 400 ResourceNotFoundException

A resource such as a private CA, S3 bucket, certificate, audit report, or policy cannot be found.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of DeleteCertificateAuthority.

Sample Request

POST / HTTP/1.1

Host: acm-pca.amazonaws.com Accept-Encoding: identity Content-Length: 163

X-Amz-Target: ACMPrivateCA.DeleteCertificateAuthority X-Amz-Date: 20180515T160248Z

User-Agent: aws-cli/1.15.4 Python/2.7.9 Windows/8 botocore/1.10.4 Content-Type: application/x-amz-json-1.1

Authorization: AWS4-HMAC-SHA256 Credential=AWS_Access_Key_ID/20180515/AWS_Region/acm-pca/

aws4_request,

SignedHeaders=content-type;host;x-amz-date;x-amz-target,

Signature=8f7e5b799989c607156141bc6856eb48acd45def7eecd2b2b7fbaa11f34d7bd1

(26)

See Also

{"PermanentDeletionTimeInDays": 17, "CertificateAuthorityArn": "arn:aws:acm-pca:us- west-2:493619779192:certificate-authority/4ce5e894-a076-4ed8-9d5c-42afbd4cbf88"}

Example

This example illustrates one usage of DeleteCertificateAuthority.

Sample Response

This function does not return a value.

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(27)

DeletePermission

DeletePermission

Revokes permissions on a private CA granted to the AWS Certificate Manager (ACM) service principal (acm.amazonaws.com).

These permissions allow ACM to issue and renew ACM certificates that reside in the same AWS account as the CA. If you revoke these permissions, ACM will no longer renew the affected certificates automatically.

Permissions can be granted with the CreatePermission action and listed with the ListPermissions action.

About Permissions

• If the private CA and the certificates it issues reside in the same account, you can use

CreatePermission to grant permissions for ACM to carry out automatic certificate renewals.

• For automatic certificate renewal to succeed, the ACM service principal needs permissions to create, retrieve, and list certificates.

• If the private CA and the ACM certificates reside in different accounts, then permissions cannot be used to enable automatic renewals. Instead, the ACM certificate owner must set up a resource-based policy to enable cross-account issuance and renewals. For more information, see Using a Resource Based Policy with ACM Private CA.

Request Syntax

{

"CertificateAuthorityArn": "string", "Principal": "string",

"SourceAccount": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 130).

The request accepts the following data in JSON format.

CertificateAuthorityArn (p. 20)

The Amazon Resource Number (ARN) of the private CA that issued the permissions. You can find the CA's ARN by calling the ListCertificateAuthorities action. This must have the following form:

arn:aws:acm-pca:region:account:certificate- authority/12345678-1234-1234-1234-123456789012 . Type: String

Length Constraints: Minimum length of 5. Maximum length of 200.

Pattern: arn:[\w+=/,.@-]+:[\w+=/,.@-]+:[\w+=/,.@-]*:[0-9]*:[\w+=,.@-]+(/[\w +=,.@-]+)*

Required: Yes Principal (p. 20)

The AWS service or identity that will have its CA permissions revoked. At this time, the only valid service principal is acm.amazonaws.com

(28)

Response Elements

Type: String

Length Constraints: Minimum length of 0. Maximum length of 128.

Pattern: ^[^*]+$

Required: Yes SourceAccount (p. 20)

The AWS account that calls this action.

Type: String

Length Constraints: Fixed length of 12.

Pattern: [0-9]+

Required: No

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 132).

InvalidArnException

The requested Amazon Resource Name (ARN) does not refer to an existing resource.

HTTP Status Code: 400 InvalidStateException

The state of the private CA does not allow this action to occur.

HTTP Status Code: 400 RequestFailedException

The request has failed for an unspecified reason.

HTTP Status Code: 400 ResourceNotFoundException

A resource such as a private CA, S3 bucket, certificate, audit report, or policy cannot be found.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

(29)

See Also

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(30)

DeletePolicy

DeletePolicy

Deletes the resource-based policy attached to a private CA. Deletion will remove any access that the policy has granted. If there is no policy attached to the private CA, this action will return successful.

If you delete a policy that was applied through AWS Resource Access Manager (RAM), the CA will be removed from all shares in which it was included.

The AWS Certificate Manager Service Linked Role that the policy supports is not affected when you delete the policy.

The current policy can be shown with GetPolicy and updated with PutPolicy.

About Policies

• A policy grants access on a private CA to an AWS customer account, to AWS Organizations, or to an AWS Organizations unit. Policies are under the control of a CA administrator. For more information, see Using a Resource Based Policy with ACM Private CA.

• A policy permits a user of AWS Certificate Manager (ACM) to issue ACM certificates signed by a CA in another account.

• For ACM to manage automatic renewal of these certificates, the ACM user must configure a Service Linked Role (SLR). The SLR allows the ACM service to assume the identity of the user, subject to confirmation against the ACM Private CA policy. For more information, see Using a Service Linked Role with ACM.

• Updates made in AWS Resource Manager (RAM) are reflected in policies. For more information, see Attach a Policy for Cross-Account Access.

Request Syntax

{

"ResourceArn": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 130).

The request accepts the following data in JSON format.

ResourceArn (p. 23)

The Amazon Resource Number (ARN) of the private CA that will have its policy deleted. You can find the CA's ARN by calling the ListCertificateAuthorities action. The ARN value must have the form arn:aws:acm-pca:region:account:certificate-authority/01234567-89ab- cdef-0123-0123456789ab.

Type: String

Length Constraints: Minimum length of 5. Maximum length of 200.

Pattern: arn:[\w+=/,.@-]+:[\w+=/,.@-]+:[\w+=/,.@-]*:[0-9]*:[\w+=,.@-]+(/[\w +=,.@-]+)*

Required: Yes

(31)

Response Elements

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 132).

ConcurrentModificationException

A previous update to your private CA is still ongoing.

HTTP Status Code: 400 InvalidArnException

The requested Amazon Resource Name (ARN) does not refer to an existing resource.

HTTP Status Code: 400 InvalidStateException

The state of the private CA does not allow this action to occur.

HTTP Status Code: 400 LockoutPreventedException

The current action was prevented because it would lock the caller out from performing subsequent actions. Verify that the specified parameters would not result in the caller being denied access to the resource.

HTTP Status Code: 400 RequestFailedException

The request has failed for an unspecified reason.

HTTP Status Code: 400 ResourceNotFoundException

A resource such as a private CA, S3 bucket, certificate, audit report, or policy cannot be found.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(32)

See Also

(33)

DescribeCertificateAuthority

DescribeCertificateAuthority

Lists information about your private certificate authority (CA) or one that has been shared with you. You specify the private CA on input by its ARN (Amazon Resource Name). The output contains the status of your CA. This can be any of the following:

• CREATING - ACM Private CA is creating your private certificate authority.

• PENDING_CERTIFICATE - The certificate is pending. You must use your ACM Private CA-hosted or on- premises root or subordinate CA to sign your private CA CSR and then import it into PCA.

• ACTIVE - Your private CA is active.

• DISABLED - Your private CA has been disabled.

• EXPIRED - Your private CA certificate has expired.

• FAILED - Your private CA has failed. Your CA can fail because of problems such a network outage or back-end AWS failure or other errors. A failed CA can never return to the pending state. You must create a new CA.

• DELETED - Your private CA is within the restoration period, after which it is permanently deleted. The length of time remaining in the CA's restoration period is also included in this action's output.

Request Syntax

{ "CertificateAuthorityArn": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 130).

The request accepts the following data in JSON format.

CertificateAuthorityArn (p. 26)

The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority.

This must be of the form:

arn:aws:acm-pca:region:account:certificate- authority/12345678-1234-1234-1234-123456789012 . Type: String

Length Constraints: Minimum length of 5. Maximum length of 200.

Pattern: arn:[\w+=/,.@-]+:[\w+=/,.@-]+:[\w+=/,.@-]*:[0-9]*:[\w+=,.@-]+(/[\w +=,.@-]+)*

Required: Yes

Response Syntax

{ "CertificateAuthority": {

(34)

Response Syntax

"Arn": "string",

"CertificateAuthorityConfiguration": { "CsrExtensions": {

"KeyUsage": {

"CRLSign": boolean,

"DataEncipherment": boolean, "DecipherOnly": boolean, "DigitalSignature": boolean, "EncipherOnly": boolean, "KeyAgreement": boolean, "KeyCertSign": boolean, "KeyEncipherment": boolean, "NonRepudiation": boolean },

"SubjectInformationAccess": [ {

"AccessLocation": { "DirectoryName": { "CommonName": "string", "Country": "string",

"DistinguishedNameQualifier": "string", "GenerationQualifier": "string",

"GivenName": "string", "Initials": "string", "Locality": "string", "Organization": "string", "OrganizationalUnit": "string", "Pseudonym": "string",

"SerialNumber": "string", "State": "string", "Surname": "string", "Title": "string"

},

"DnsName": "string", "EdiPartyName": {

"NameAssigner": "string", "PartyName": "string"

},

"IpAddress": "string", "OtherName": { "TypeId": "string", "Value": "string"

},

"RegisteredId": "string", "Rfc822Name": "string",

"UniformResourceIdentifier": "string"

},

"AccessMethod": {

"AccessMethodType": "string", "CustomObjectIdentifier": "string"

} } ] },

"KeyAlgorithm": "string", "SigningAlgorithm": "string", "Subject": {

"CommonName": "string", "Country": "string",

"DistinguishedNameQualifier": "string", "GenerationQualifier": "string", "GivenName": "string",

"Initials": "string", "Locality": "string", "Organization": "string", "OrganizationalUnit": "string",

(35)

Response Elements

"Pseudonym": "string", "SerialNumber": "string", "State": "string",

"Surname": "string", "Title": "string"

} },

"CreatedAt": number, "FailureReason": "string",

"KeyStorageSecurityStandard": "string", "LastStateChangeAt": number,

"NotAfter": number, "NotBefore": number, "OwnerAccount": "string", "RestorableUntil": number, "RevocationConfiguration": { "CrlConfiguration": { "CustomCname": "string", "Enabled": boolean,

"ExpirationInDays": number, "S3BucketName": "string", "S3ObjectAcl": "string"

},

"OcspConfiguration": { "Enabled": boolean,

"OcspCustomCname": "string"

} },

"Serial": "string", "Status": "string", "Type": "string"

}}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

CertificateAuthority (p. 26)

A CertificateAuthority structure that contains information about your private CA.

Type: CertificateAuthority (p. 102) object

Errors

For information about the errors that are common to all actions, see Common Errors (p. 132).

InvalidArnException

The requested Amazon Resource Name (ARN) does not refer to an existing resource.

HTTP Status Code: 400 ResourceNotFoundException

A resource such as a private CA, S3 bucket, certificate, audit report, or policy cannot be found.

HTTP Status Code: 400

(36)

Examples

Examples

Example

This example illustrates one usage of DescribeCertificateAuthority.

Sample Request

POST / HTTP/1.1

Host: acm-pca.amazonaws.com Accept-Encoding: identity Content-Length: 128

X-Amz-Target: ACMPrivateCA.DescribeCertificateAuthority X-Amz-Date: 20180226T175919Z

User-Agent: aws-cli/1.14.28 Python/2.7.9 Windows/8 botocore/1.8.32 Content-Type: application/x-amz-json-1.1

Authorization: AWS4-HMAC-SHA256 Credential=Access_Key_ID/20180226/AWS_Region/acm-pca/

aws4_request,

SignedHeaders=content-type;host;x-amz-date;x-amz-target,

Signature=953a014106627a76d91f55fd86bb1149bf65d578886bf2371aa4c73c56e16a1d {"CertificateAuthorityArn": "arn:aws:acm-pca:region:account:certificate- authority/12345678-1234-1234-1234-123456789012"}

Example

This example illustrates one usage of DescribeCertificateAuthority.

Sample Response

HTTP/1.1 200 OK

Date: Tue, 15 May 2018 17:09:51 GMT Content-Type: application/x-amz-json-1.1 Content-Length: 713

x-amzn-RequestId: 8d51e9ff-8ae9-4ccf-816a-8e7d9c3dc1af Connection: keep-alive

{

"CertificateAuthority": {

"Arn": "arn:aws:acm-pca:gh:account:certificate- authority/12345678-1234-1234-1234-123456789012", "CertificateAuthorityConfiguration": { "KeyAlgorithm": "RSA_2048",

"SigningAlgorithm": "SHA256WITHRSA", "Subject": {

"CommonName": "www.example.com", "Country": "US",

"Locality": "Seattle",

"Organization": "Example Company", "OrganizationalUnit": "Corporate", "State": "WA"

} },

"CreatedAt": 1.516130652887E9,

"LastStateChangeAt": 1.516130652887E9, "NotAfter": 1.831494803E9,

"NotBefore": 1.516134803E9, "RevocationConfiguration": { "CrlConfiguration": {

"CustomCname": "http://somename.crl",

(37)

See Also

"Enabled": true,

"ExpirationInDays": 3650,

"S3BucketName": "your-bucket-name"

} },

"Serial": "4118", "Status": "ACTIVE", "Type": "SUBORDINATE"

} }

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(38)

DescribeCertificateAuthorityAuditReport

DescribeCertificateAuthorityAuditReport

Lists information about a specific audit report created by calling the

CreateCertificateAuthorityAuditReport action. Audit information is created every time the certificate authority (CA) private key is used. The private key is used when you call the IssueCertificate action or the RevokeCertificate action.

Request Syntax

{

"AuditReportId": "string",

"CertificateAuthorityArn": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 130).

The request accepts the following data in JSON format.

AuditReportId (p. 31)

The report ID returned by calling the CreateCertificateAuthorityAuditReport action.

Type: String

Length Constraints: Fixed length of 36.

Pattern: [a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}

Required: Yes

CertificateAuthorityArn (p. 31)

The Amazon Resource Name (ARN) of the private CA. This must be of the form:

arn:aws:acm-pca:region:account:certificate- authority/12345678-1234-1234-1234-123456789012 . Type: String

Length Constraints: Minimum length of 5. Maximum length of 200.

Pattern: arn:[\w+=/,.@-]+:[\w+=/,.@-]+:[\w+=/,.@-]*:[0-9]*:[\w+=,.@-]+(/[\w +=,.@-]+)*

Required: Yes

Response Syntax

{ "AuditReportStatus": "string", "CreatedAt": number,

"S3BucketName": "string",

(39)

Response Elements

"S3Key": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

AuditReportStatus (p. 31)

Specifies whether report creation is in progress, has succeeded, or has failed.

Type: String

Valid Values: CREATING | SUCCESS | FAILED CreatedAt (p. 31)

The date and time at which the report was created.

Type: Timestamp S3BucketName (p. 31)

Name of the S3 bucket that contains the report.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 63.

S3Key (p. 31)

S3 key that uniquely identifies the report file in your S3 bucket.

Type: String

Length Constraints: Maximum length of 1024.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 132).

InvalidArgsException

One or more of the specified arguments was not valid.

HTTP Status Code: 400 InvalidArnException

The requested Amazon Resource Name (ARN) does not refer to an existing resource.

HTTP Status Code: 400 ResourceNotFoundException

A resource such as a private CA, S3 bucket, certificate, audit report, or policy cannot be found.

HTTP Status Code: 400

(40)

Examples

Examples

Example

This example illustrates one usage of DescribeCertificateAuthorityAuditReport.

Sample Request

POST / HTTP/1.1

Host: acm-pca.amazonaws.com Accept-Encoding: identity Content-Length: 185

X-Amz-Target: ACMPrivateCA.DescribeCertificateAuthorityAuditReport X-Amz-Date: 20180226T185916Z

User-Agent: aws-cli/1.14.28 Python/2.7.9 Windows/8 botocore/1.8.32 Content-Type: application/x-amz-json-1.1

Authorization: AWS4-HMAC-SHA256 Credential=AWS_Access_Key_ID/20180226/AWS_Region/acm-pca/

aws4_request,

SignedHeaders=content-type;host;x-amz-date;x-amz-target,

Signature=96531073ea22cc7057267543f332911b97a5db830dca85a74a7324c9737cee7a { "AuditReportId": "11111111-2222-3333-4444-555555555555",

"CertificateAuthorityArn": "arn:aws:acm-pca:region:account:certificate- authority/12345678-1234-1234-1234-123456789012"

}

Example

This example illustrates one usage of DescribeCertificateAuthorityAuditReport.

Sample Response

HTTP/1.1 200 OK

Date: Tue, 15 May 2018 16:33:26 GMT

Content-Type: application/xget-amz-json-1.1 Content-Length: 211

x-amzn-RequestId: 3af6a588-856c-48eb-81ab-f2f08fbc618c Connection: keep-alive

{

"AuditReportStatus": "SUCCESS", "CreatedAt": 1.526401743081E9, "S3BucketName": "your-bucket-name",

"S3Key": "audit-report/PCA_ID/Audit_Report_ID.json"

}

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

(41)

See Also

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(42)

GetCertificate

GetCertificate

Retrieves a certificate from your private CA or one that has been shared with you. The ARN of the certificate is returned when you call the IssueCertificate action. You must specify both the ARN of your private CA and the ARN of the issued certificate when calling the GetCertificate action. You can retrieve the certificate if it is in the ISSUED state. You can call the CreateCertificateAuthorityAuditReport action to create a report that contains information about all of the certificates issued and revoked by your private CA.

Request Syntax

{ "CertificateArn": "string",

"CertificateAuthorityArn": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 130).

The request accepts the following data in JSON format.

CertificateArn (p. 35)

The ARN of the issued certificate. The ARN contains the certificate serial number and must be in the following form:

arn:aws:acm-pca:region:account:certificate- authority/12345678-1234-1234-1234-123456789012/

certificate/286535153982981100925020015808220737245 Type: String

Length Constraints: Minimum length of 5. Maximum length of 200.

Pattern: arn:[\w+=/,.@-]+:[\w+=/,.@-]+:[\w+=/,.@-]*:[0-9]*:[\w+=,.@-]+(/[\w +=,.@-]+)*

Required: Yes

CertificateAuthorityArn (p. 35)

The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority.

This must be of the form:

arn:aws:acm-pca:region:account:certificate- authority/12345678-1234-1234-1234-123456789012 . Type: String

Length Constraints: Minimum length of 5. Maximum length of 200.

Pattern: arn:[\w+=/,.@-]+:[\w+=/,.@-]+:[\w+=/,.@-]*:[0-9]*:[\w+=,.@-]+(/[\w +=,.@-]+)*

Required: Yes

(43)

Response Syntax

Response Syntax

{

"Certificate": "string", "CertificateChain": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

Certificate (p. 36)

The base64 PEM-encoded certificate specified by the CertificateArn parameter.

Type: String CertificateChain (p. 36)

The base64 PEM-encoded certificate chain that chains up to the root CA certificate that you used to sign your private CA certificate.

Type: String

Errors

For information about the errors that are common to all actions, see Common Errors (p. 132).

InvalidArnException

The requested Amazon Resource Name (ARN) does not refer to an existing resource.

HTTP Status Code: 400 InvalidStateException

The state of the private CA does not allow this action to occur.

HTTP Status Code: 400 RequestFailedException

The request has failed for an unspecified reason.

HTTP Status Code: 400 RequestInProgressException

Your request is already in progress.

HTTP Status Code: 400 ResourceNotFoundException

A resource such as a private CA, S3 bucket, certificate, audit report, or policy cannot be found.

HTTP Status Code: 400

(44)

Examples

Examples

Example

This example illustrates one usage of GetCertificate.

Sample Request

POST / HTTP/1.1

Host: acm-pca.amazonaws.com Accept-Encoding: identity Content-Length: 292

X-Amz-Target: ACMPrivateCA.GetCertificate X-Amz-Date: 20180226T194913Z

User-Agent: aws-cli/1.14.28 Python/2.7.9 Windows/8 botocore/1.8.32 Content-Type: application/x-amz-json-1.1

Authorization: AWS4-HMAC-SHA256 Credential=AWS_Access_Key_ID/20180226/AWS_Region/

acm-pca/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-target, Signature=4fe34fdad8c09d5b608be6f5d4f4939444dd7cdd542ec09b1002182e4ef9fcee {

"CertificateArn": "arn:aws:acm-pca:region:account:certificate- authority/12345678-1234-1234-1234-123456789012/certificate/

e8cbd2bedb122329f97706bcfec990f8",

"CertificateAuthorityArn": "arn:aws:acm-pca:region:account:certificate- authority/12345678-1234-1234-1234-123456789012"

}

Example

This example illustrates one usage of GetCertificate.

Sample Response

HTTP/1.1 200 OK

Date: Tue, 15 May 2018 17:35:47 GMT Content-Type: application/x-amz-json-1.1 Content-Length: 4184

x-amzn-RequestId: 9f537e0a-993c-4a03-8aec-0fc52c772b84 Connection: keep-alive

{

"Certificate": "---BEGIN CERTIFICATE--- base64-encoded certificate ---END CERTIFICATE---",

"CertificateChain": "---BEGIN CERTIFICATE--- base64-encoded certificate ---END CERTIFICATE---"

}

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

(45)

See Also

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(46)

GetCertificateAuthorityCertificate

GetCertificateAuthorityCertificate

Retrieves the certificate and certificate chain for your private certificate authority (CA) or one that has been shared with you. Both the certificate and the chain are base64 PEM-encoded. The chain does not include the CA certificate. Each certificate in the chain signs the one before it.

Request Syntax

{

"CertificateAuthorityArn": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 130).

The request accepts the following data in JSON format.

CertificateAuthorityArn (p. 39)

The Amazon Resource Name (ARN) of your private CA. This is of the form:

arn:aws:acm-pca:region:account:certificate- authority/12345678-1234-1234-1234-123456789012 . Type: String

Length Constraints: Minimum length of 5. Maximum length of 200.

Pattern: arn:[\w+=/,.@-]+:[\w+=/,.@-]+:[\w+=/,.@-]*:[0-9]*:[\w+=,.@-]+(/[\w +=,.@-]+)*

Required: Yes

Response Syntax

{ "Certificate": "string", "CertificateChain": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

Certificate (p. 39)

Base64-encoded certificate authority (CA) certificate.

Type: String

(47)

Errors

CertificateChain (p. 39)

Base64-encoded certificate chain that includes any intermediate certificates and chains up to root certificate that you used to sign your private CA certificate. The chain does not include your private CA certificate. If this is a root CA, the value will be null.

Type: String

Errors

For information about the errors that are common to all actions, see Common Errors (p. 132).

InvalidArnException

The requested Amazon Resource Name (ARN) does not refer to an existing resource.

HTTP Status Code: 400 InvalidStateException

The state of the private CA does not allow this action to occur.

HTTP Status Code: 400 ResourceNotFoundException

A resource such as a private CA, S3 bucket, certificate, audit report, or policy cannot be found.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of GetCertificateAuthorityCertificate.

Sample Request

POST / HTTP/1.1

Host: acm-pca.amazonaws.com Accept-Encoding: identity Content-Length: 128

X-Amz-Target: ACMPrivateCA.GetCertificateAuthorityCertificate X-Amz-Date: 20180226T174831Z

User-Agent: aws-cli/1.14.28 Python/2.7.9 Windows/8 botocore/1.8.32 Content-Type: application/x-amz-json-1.1

Authorization: AWS4-HMAC-SHA256 Credential=Access_Key_ID/20180226/AWS_Region/acm-pca/

aws4_request,

SignedHeaders=content-type;host;x-amz-date;x-amz-target,

Signature=2675f0e4055c234f5b6e155bd3245ca327382d47a16e0c20f2abc802e1f0eab6 {"CertificateAuthorityArn": "arn:aws:acm-pca:AWS_Region:AWS_Account:certificate- authority/12345678-1234-1234-1234-123456789012"}

Example

This example illustrates one usage of GetCertificateAuthorityCertificate.

(48)

See Also

Sample Response

HTTP/1.1 200 OK

Date: Tue, 15 May 2018 17:43:38 GMT Content-Type: application/x-amz-json-1.1 Content-Length: 2552

x-amzn-RequestId: 8c607f26-6d9e-4972-a529-02cc5608c81a Connection: keep-alive

{

"Certificate": "---BEGIN CERTIFICATE--- base64-encoded certificate ---END CERTIFICATE---",

"CertificateChain": "---BEGIN CERTIFICATE--- base64-encoded certificate chain --- END CERTIFICATE---"

}

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

參考文獻

相關文件

Students will practice reading texts to through choral reading, TPS-think/pair/share, student/teacher cooperative groups, and round-robin reading to explore and

Students will practice reading texts to through choral reading, TPS-think/pair/share, student/teacher cooperative groups, and round-robin reading to explore and

Webots also contains a number of interfaces to real mobiles robots, so that once your simulated robot behaves as expected, you can transfer its control program to a real robot

Consultations and Average Charges for Chinese Medicine Services Provided in Private Clinics by Type of Service Atendimentos e custo médio de consultas de medicina tradicional

Consultations and Average Charges for Chinese Medicine Services Provided in Private Clinics by Type of Service Atendimentos e custo médio de consultas de medicina tradicional

Consultations and Average Charges for Chinese Medicine Services Provided in Private Clinics by Type of Service Atendimentos e custo médio de consultas de medicina tradicional

Consultations and Average Charges for Chinese Medicine Services Provided in Private Clinics by Type of Service Atendimentos e custo médio de consultas de medicina tradicional

The 2007 Health Care Survey collected information from 713 health care establishments, comprising the 3 hospitals providing hospital care services, 477 private clinics and