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.

Container for the parameters to the ImportCertificate operation. Imports an SSL/TLS certificate into AWS Certificate Manager (ACM) to use with ACM's integrated AWS services.

ACM does not provide managed renewal for certificates that you import.

For more information about importing certificates into ACM, including the differences between certificates that you import and those that ACM provides, see Importing Certificates in the AWS Certificate Manager User Guide.

To import a certificate, you must provide the certificate and the matching private key. When the certificate is not self-signed, you must also provide a certificate chain. You can omit the certificate chain when importing a self-signed certificate.

The certificate, private key, and certificate chain must be PEM-encoded. For more information about converting these items to PEM format, see Importing Certificates Troubleshooting in the AWS Certificate Manager User Guide.

To import a new certificate, omit the CertificateArn field. Include this field only when you want to replace a previously imported certificate.

This operation returns the Amazon Resource Name (ARN) of the imported certificate.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.CertificateManager.AmazonCertificateManagerRequest
      Amazon.CertificateManager.Model.ImportCertificateRequest

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

Syntax

C#
public class ImportCertificateRequest : AmazonCertificateManagerRequest
         IAmazonWebServiceRequest

The ImportCertificateRequest type exposes the following members

Constructors

NameDescription
Public Method ImportCertificateRequest()

Properties

NameTypeDescription
Public Property Certificate System.IO.MemoryStream

Gets and sets the property Certificate.

The certificate to import. It must meet the following requirements:

  • Must be PEM-encoded.

  • Must contain a 1024-bit or 2048-bit RSA public key.

  • Must be valid at the time of import. You cannot import a certificate before its validity period begins (the certificate's NotBefore date) or after it expires (the certificate's NotAfter date).

Public Property CertificateArn System.String

Gets and sets the property CertificateArn.

The Amazon Resource Name (ARN) of an imported certificate to replace. To import a new certificate, omit this field.

Public Property CertificateChain System.IO.MemoryStream

Gets and sets the property CertificateChain.

The certificate chain. It must be PEM-encoded.

Public Property PrivateKey System.IO.MemoryStream

Gets and sets the property PrivateKey.

The private key that matches the public key in the certificate. It must meet the following requirements:

  • Must be PEM-encoded.

  • Must be unencrypted. You cannot import a private key that is protected by a password or passphrase.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms