Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Rule: API Gateway REST API Stages SSL Certificates Configuration

This rule addresses configuring SSL certificates for backend authentication in API Gateway REST API stages.

RuleAPI Gateway REST API stages should be configured to use SSL certificates for backend authentication
FrameworkAWS Foundational Security Best Practices
Severity
Medium

Rule Description:

API Gateway REST API stages should be configured to use SSL certificates for backend authentication for AWS Foundational Security Best Practices.

This rule ensures that the backend services used by API Gateway REST APIs are authenticated using SSL certificates, enhancing the overall security posture of the application.

Rule Explanation:

SSL certificates enable secure communication between the API Gateway and backend services by encrypting the data transmitted over the network. By enforcing SSL certificates for backend authentication, the risk of unauthorized access and interception of data is significantly reduced.

Troubleshooting Steps:

  1. 1.

    Verify SSL certificate configuration:

    • Ensure that SSL certificates are correctly configured for the backend services.
    • Double-check the certificate settings, including the certificate chain, private key, and encryption protocols.
  2. 2.

    Validate SSL certificate expiration:

    • Check the expiration date of the SSL certificate and ensure it is not expired or close to expiration.
    • Renew the certificate if it is nearing expiration.
  3. 3.

    Verify backend service connectivity:

    • Ensure that the backend services are properly configured to accept SSL connections.
    • Validate that the API Gateway is able to establish a secure connection with the backend services.

Necessary Codes:

No specific codes are required for this rule. However, you may need to manage the SSL certificates and configure the backend services accordingly.

Remediation Steps:

To configure SSL certificates for backend authentication in API Gateway REST API stages, follow these steps:

  1. 1.

    Login to the AWS Management Console.

  2. 2.

    Open the API Gateway service.

  3. 3.

    Select the desired API from the APIs list.

  4. 4.

    In the left-hand panel, click on "Stages."

  5. 5.

    Select the specific stage for which you want to enable SSL certificates for backend authentication.

  6. 6.

    Click on the "Settings" tab.

  7. 7.

    Scroll down to the "API Gateway domain name" section.

  8. 8.

    Click on the "Edit" button.

  9. 9.

    Enable the "Enable CloudFront" option.

  10. 10.

    Under "Security Certificate," select the appropriate SSL certificate from the dropdown list.

  11. 11.

    Confirm the changes and click on the "Save Changes" button.

  12. 12.

    Test the connectivity to the backend services to ensure that the SSL certificate authentication is successful.

Additional Considerations:

  • Keep track of SSL certificate expiration dates and renew them before they expire to avoid any service disruptions.
  • Regularly monitor the SSL certificate configuration to ensure the use of strong encryption protocols and adherence to best practices.
  • Consider using AWS Certificate Manager (ACM) to manage and renew SSL certificates automatically for your API Gateway resources.

By following these steps, the API Gateway REST API stages will be configured to use SSL certificates for backend authentication, adding an additional layer of security to your application.

Is your System Free of Underlying Vulnerabilities?
Find Out Now