This rule ensures that API Gateway stages use SSL certificates to secure communication.
Rule | API Gateway stage should uses SSL certificate |
Framework | FedRAMP Moderate Revision 4 |
Severity | ✔ Medium |
Rule Description
The API Gateway stage should use an SSL certificate that is compliant with the FedRAMP Moderate Revision 4 security standards. This ensures that communications between the client and the API are encrypted and secure.
Troubleshooting Steps
If the API Gateway stage is not using an SSL certificate that complies with FedRAMP Moderate Revision 4, follow these troubleshooting steps:
Remediation Steps
To remediate the issue and ensure that the API Gateway stage uses an SSL certificate compliant with FedRAMP Moderate Revision 4, follow these steps:
Step 1: Generate or Obtain a FedRAMP-compliant SSL Certificate
Step 2: Upload the SSL Certificate to the API Gateway Stage
Step 3: Test SSL Certificate Integration
Code Example
If you are using an API Gateway CLI, you can use the following command to update the SSL certificate for a specific stage:
aws apigateway update-stage \ --rest-api-id <rest-api-id> \ --stage-name <stage-name> \ --patch-operations op="replace",path="/<domain-name>/certificateArn",value="<certificate-arn>"
Replace
<rest-api-id>
with the ID of your API Gateway, <stage-name>
with the name of the stage, <domain-name>
with the custom domain name (if applicable), and <certificate-arn>
with the ARN of the new SSL certificate.Note: Ensure you have the necessary permissions to execute this command.
Conclusion
By following the above troubleshooting and remediation steps, you can ensure that your API Gateway stage uses an SSL certificate compliant with the FedRAMP Moderate Revision 4 security standards. This enhances the security of the communication between the client and the API, protecting sensitive data and meeting regulatory requirements.