T
T
T_y_l_e_r2016-01-01 20:34:46
linux
T_y_l_e_r, 2016-01-01 20:34:46

How to create an SSL certificate for telegram bot?

I tried to create a self-signed certificate for a telegram bot.

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

It went to telegram normally, but it doesn’t work with it in any way, it displays an error.
Everywhere it is written that the CN must be a domain and that it also works like a self-signed one.
But I don't want to work.
What am I doing wrong and how can I check that the certificate is correct (for example, check that the CN matches the domain)?
Maybe someone faced this problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VK, 2017-01-06
@VladimirKokarev

A free human certificate is here , it works with it. I could not negotiate with the telegram with the self-signed one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question