Sending Amazon SNS Messages to HTTPS Endpoints

Before you subscribe your HTTPS endpoint to a topic, you must make sure that the HTTPS endpoint has the capability to handle the HTTP POST requests that Amazon SNS uses to send the subscription confirmation and notification messages. Usually, this means creating and deploying a web application (for example, a Java servlet if your endpoint host is running Linux with Apache and Tomcat) that processes the HTTP requests from Amazon SNS. When you subscribe an HTTP endpoint, Amazon SNS sends it a subscription confirmation request. Your endpoint must be prepared to receive and process this request when you create the subscription because Amazon SNS sends this request at that time. Amazon SNS will not send notifications to the endpoint until you confirm the subscription. Once you confirm the subscription, Amazon SNS will send notifications to the endpoint when a publish action is performed on the subscribed topic.

3rd Party References -

SNS Reference -https://docs.aws.amazon.com/sns/latest/dg/SendMessageToHttp.html#SendMessageToHttp.prepare

Java Code reference - https://docs.aws.amazon.com/sns/latest/dg/SendMessageToHttp.example.java.html

Certificate Authorities (CA) Recognized by Amazon SNS for HTTPS Endpoints

Please refer below link -

https://docs.aws.amazon.com/sns/latest/dg/SendMessageToHttp.https.ca.html
Verifying the Signatures of Amazon SNS Messages

Please refer below link -
https://docs.aws.amazon.com/sns/latest/dg/SendMessageToHttp.verify.signature.html


Did this page help you?