Telegram self-signed certificate on CentOS + Nginx

Simply create cert via Openssl as described here:

https://core.telegram.org/bots/self-signed

after that, configure the nginx :

https://www.digitalocean.com/community/tutorials/how-to-create-an-ssl-certificate-on-nginx-for-ubuntu-14-04

jump to step 2…

good luck!