Implementation for accessing CertificateManager AWS Certificate Manager

Welcome to the AWS Certificate Manager (ACM) API documentation.

You can use ACM to manage SSL/TLS certificates for your AWS-based websites and applications. For general information about using ACM, see the AWS Certificate Manager User Guide .

Inheritance: AmazonServiceClient, IAmazonCertificateManager
Exemplo n.º 1
0
        static void Main(string[] args)
        {
            AmazonCertificateManagerConfig acmConfig = new AmazonCertificateManagerConfig();

            acmConfig.RegionEndpoint = Amazon.RegionEndpoint.USEast1;

            var client = new Amazon.CertificateManager.AmazonCertificateManagerClient(acmConfig);

            var describeCertificateReq = new DescribeCertificateRequest();

            describeCertificateReq.CertificateArn = "arn:aws:acm:us-east-1:123456789012:certificate/8cfd7dae-9b6a-2d07-92bc-1c3093edb218";

            var certificateDetailResp = DescribeCertificateResponseAsync(client: client, request: describeCertificateReq);
            var certificateDetail     = certificateDetailResp.Result.Certificate;

            Console.WriteLine(Environment.NewLine + "Certificate Details: ");
            Console.WriteLine("Certificate Domain: " + certificateDetail.DomainName);
            Console.WriteLine("Certificate Arn: " + certificateDetail.CertificateArn);
            Console.WriteLine("Certificate Subject: " + certificateDetail.Subject);
            Console.WriteLine("Certificate Status: " + certificateDetail.Status);
            foreach (var san in certificateDetail.SubjectAlternativeNames)
            {
                Console.WriteLine("Certificate SubjectAlternativeName: " + san);
            }
        }
        static void Main(string[] args)
        {
            var _client = new Amazon.CertificateManager.AmazonCertificateManagerClient(ACMRegion);

            var describeCertificateReq = new DescribeCertificateRequest();

            // The ARN used here is just an example. Replace it with the ARN of
            // a certificate that exists on your account.
            describeCertificateReq.CertificateArn = "arn:aws:acm:us-east-1:123456789012:certificate/8cfd7dae-9b6a-2d07-92bc-1c3093edb218";

            var certificateDetailResp = DescribeCertificateResponseAsync(client: _client, request: describeCertificateReq);
            var certificateDetail     = certificateDetailResp.Result.Certificate;

            if (certificateDetail is not null)
            {
                DisplayCertificateDetails(certificateDetail);
            }
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            AmazonCertificateManagerConfig acmConfig = new AmazonCertificateManagerConfig();

            acmConfig.RegionEndpoint = Amazon.RegionEndpoint.USEast1;

            var client = new Amazon.CertificateManager.AmazonCertificateManagerClient(acmConfig);
            var listCertificatesReq = new ListCertificatesRequest();
            var certificateList     = ListCertificatesResponseAsync(client: client, request: listCertificatesReq);


            Console.WriteLine("Certificate Summary List : " + Environment.NewLine);

            foreach (var certificate in certificateList.Result.CertificateSummaryList)
            {
                Console.WriteLine("Certificate Domain: " + certificate.DomainName);
                Console.WriteLine("Certificate ARN: " + certificate.CertificateArn + Environment.NewLine);
            }
        }