AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Both Amazon Web Services Private CA 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.

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

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to CreateCertificateAuthorityAsync.

Namespace: Amazon.ACMPCA
Assembly: AWSSDK.ACMPCA.dll
Version: 3.x.y.z

Syntax

C#
public virtual CreateCertificateAuthorityResponse CreateCertificateAuthority(
         CreateCertificateAuthorityRequest request
)

Parameters

request
Type: Amazon.ACMPCA.Model.CreateCertificateAuthorityRequest

Container for the necessary parameters to execute the CreateCertificateAuthority service method.

Return Value


The response from the CreateCertificateAuthority service method, as returned by ACMPCA.

Exceptions

ExceptionCondition
InvalidArgsException One or more of the specified arguments was not valid.
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.
InvalidTagException The tag associated with the CA is not valid. The invalid argument is contained in the message field.
LimitExceededException An Amazon Web Services Private CA quota has been exceeded. See the exception message returned to determine the quota that was exceeded.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also