AWS API Gateway Domain name

Source: Internet
Author: User
Tags begin rsa private key

Set up a Custom Domain Name for an API Gateway API

The following procedure describes how to set up a custom domain name.

To set-a custom domain name for the API Gateway API

  1. Sign in to the API Gateway console at Https://console.aws.amazon.com/apigateway.

  2. Choose Custom Domain Names from the main navigation Pane.

  3. Choose Create in the secondary Navigation Pane.

  4. in Create Custom Domain Name, specify the following:

    1. for domain name, type your Domain name (for example, api.example.com ).

    2. for Certificate name, type a name for the future reference (for example my-example-certificate ,).

    3. for Certificate body, type or paste the body of the pem-formatted server Certificate from your Certificate authority. The following shows an abbreviated example of such a certificate.

      -----BEGIN CERTIFICATE-----EXAMPLECA+KgAwIBAgIQJ1XxJ8Pl++gOfQtj0IBoqDANBgkqhkiG9w0BAQUFADBB...az8Cg1aicxLBQ7EaWIhhgEXAMPLE-----END CERTIFICATE-----
    4. For certificate private key, type or paste your pem-formatted Certificate ' s private key. The following shows an abbreviated example of such a key.

      -----BEGIN RSA PRIVATE KEY-----Examplebaakcaqea2qb3ldhd7sty7wj6u2/opv6xu37qucckedwhwpzmyj9/neto ... 1qgvj3u04vdnzayn5woyn5lfckrla71+cszd1cgsqbvdwexample-----END RSA PRIVATE KEY----- 
    5. for Certificate chain, type or paste the Pem-formatted intermediate certificates and, optionally, the root Certificate , one after the other without any blank lines. If you include the root certificate, your certificate chain must start with intermediate certificates and end with the roo T certificate. Use the intermediate certificates provided by your certificate authority. Do not include any intermediaries that is not in the chain of trust path. The following shows an abbreviated example.

      -----BEGIN CERTIFICATE-----EXAMPLECA4ugAwIBAgIQWrYdrB5NogYUx1U9Pamy3DANBgkqhkiG9w0BAQUFADCB...8/ifBlIK3se2e4/hEfcEejX/arxbx1BJCHBvlEPNnsdw8EXAMPLE-----END CERTIFICATE-----

      Here is another example.

      -----BEGIN CERTIFICATE-----Intermediate certificate 2-----END CERTIFICATE----------BEGIN CERTIFICATE-----Intermediate certificate 1-----END CERTIFICATE----------BEGIN CERTIFICATE-----Optional: Root certificate-----END CERTIFICATE-----
  5. Choose Save.

  6. While the new custom domain name was being created, the console displays the following information to a alias RESOURC E record created in your DNS provider to map your custom domain name ( api.example.com ) to the API ' s CloudFront distribution domain n Ame ( distribution-id.cloudfront.net ).

AWS API Gateway Domain name

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.