D
D
Denis Denisov2017-10-13 12:57:08
css
Denis Denisov, 2017-10-13 12:57:08

How to generate an SSL certificate for Telegram?

The telegram website says that it is happy to use this command:

openssl req -newkey rsa:2048 -sha256 -nodes -keyout YOURPRIVATE.key -x509 -days 365 -out YOURPUBLIC.pem -subj "/C=US/ST=New York/L=Brooklyn/O=Example Brooklyn Company/CN=YOURDOMAIN.EXAMPLE"

Where can I get YOURPRIVATE.key or do I have to invent it myself?
What is YOURPUBLIC.pem?
And do I need to change something here:
/C=US/ST=New York/L=Brooklyn/O=Example Brooklyn Company/CN

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Sokolov, 2017-10-13
@StupidNick

Run this command 1:1, you will have files YOURPRIVATE.keyandYOURPUBLIC.pem

D
Dmitry Isaev, 2017-10-14
@IsaevDimka

https://letsencryptonline.com/ - Let's Encrypt generator

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question