What is SNI (with specific reference to Plivo)

it flag

Plivo have announced that they are depreciating their Legacy Messaging API for SNI. I've been unable to find any documentation on the topic (ideally with code samples) on their portal.

I'm not been able to figure out how to configure my end point to use this technology.

Would it be possible to implement SNI using STunnel thereby avoiding a code overhaul? My existing solution would tunnel through STunnel which would, in turn, layer on the SNI component.

Thanks for any pointers with specific focus on Plivo.

Notification from Plivo

enter image description here


Michael Hampton avatar
cz flag
What is this announcement? Where did you find it? Please link to it.
it flag
@MichaelHampton I updated my original post to add the notifcation
Michael Hampton avatar
cz flag
OK, that makes sense. The question now is, why do you think your app doesn't already support SNI? It has been around for close to a decade and virtually everything already supports it.
co flag
SNI typically means the Server Name Indication extension for SSL, which allows multiple domains on the same ip address, since you mentioned `stunnel`, you can set the `sni` option in the config to the host domain name you are trying to connect to
it flag
I am using Postman to try to get that functionality. I used the tutorial available on plivo's site
it flag

I am testing the solution using Postman. Plivo have a tutorial on their site using this tool: Get started using Postman Collections for Plivo SMS APIs.

In STunnel I added the following configuration:

accept = :261
connect =
sni =
checkHost =
verifyChain = yes
CAfile = ca-certs.pem
TIMEOUTbusy = 300
TIMEOUTclose = 60
TIMEOUTconnect = 10

I then modified the Postman RestAPI solution provided by Plivo, replacing{{auth_id}}/Message/ (I changed api.plivo.vom to



{{server_ip}} points to the machine running STunnel (eg 192.168.xx.xx:261).

I tested and it worked.

PS: If the STunnel service is not running on your local computer you may need to open the firewall ports to allow the server to accept traffic on port 261.


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.