Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL not work ? #568

Open
Bqdzy opened this issue Aug 23, 2021 · 0 comments
Open

SSL not work ? #568

Bqdzy opened this issue Aug 23, 2021 · 0 comments

Comments

@Bqdzy
Copy link

Bqdzy commented Aug 23, 2021

Hello,

I am trying to connect the bot in SSL. For that I generated a certificate:
openssl req -newkey rsa:2048 -new -nodes -keyout key.pem -out csr.pem
openssl x509 -req -days 365 -in csr.pem -signkey key.pem -out server.crt

and I configured the secure with this:
var options = { key: fs.readFileSync('key.pem'), cert: fs.readFileSync('server.crt'), };

But the bot doesn't seem to want to connect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant