Rule: API Gateway Stage Should Use SSL Certificate
This rule ensures that the API Gateway stage is configured to use SSL certificate for secure communication.
Rule
API Gateway stage should uses SSL certificate
Framework
CISA-cyber-essentials
Severity
✔
Medium
Rule Description: API Gateway Stage SSL Certificate for CISA-Cyber Essentials
Overview:
The following rule mandates that all API Gateway stages should use an SSL (Secure Sockets Layer) certificate for CISA (Cybersecurity and Infrastructure Security Agency) Cyber Essentials compliance. This is an important security measure to protect the data transmitted between clients and the API Gateway endpoint.
Importance/Purpose:
Using an SSL certificate ensures that the communication between the client and the API Gateway is encrypted and secure. By enabling SSL, sensitive information, such as user credentials and data, remains protected from unauthorized access or interception by malicious actors. Complying with CISA-Cyber Essentials guidelines ensures a higher level of security and minimizes potential vulnerabilities.
Steps to Implement SSL Certificate for API Gateway Stage:
1. Obtain an SSL Certificate:
Obtain a valid SSL certificate from a trusted certificate authority (CA) or from Amazon Certificate Manager (ACM). Ensure that the certificate is compatible with the API Gateway stage.
2. Import the SSL Certificate to AWS Certificate Manager (ACM):
If you are using ACM, follow these steps to import the SSL certificate:
1.
Log in to the AWS Management Console.
2.
Navigate to the ACM service.
3.
Click "Import a certificate."
4.
Follow the on-screen instructions to import the SSL certificate.
3. Associate the SSL Certificate with the API Gateway Stage:
To associate the SSL certificate with the API Gateway stage, follow these steps:
1.
Log in to the AWS Management Console.
2.
Navigate to the API Gateway service.
3.
Select the desired API Gateway stage.
4.
Go to the "Settings" tab.
5.
Under the "Custom domain name" section, choose the desired domain name.
6.
Select the imported SSL certificate from either ACM or the CA.
7.
Save the changes.
4. Verify SSL Certificate Configuration:
After associating the SSL certificate, perform the following steps to verify the SSL certificate configuration:
1.
Open a web browser and enter the custom domain name linked to the API Gateway stage.
2.
If the SSL certificate has been configured correctly, the browser should display a lock icon indicating a secure connection.
3.
Perform a thorough testing of the API Gateway endpoints to ensure SSL is properly functioning.