Skip to content

SSL Certificates generation #2302

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

Closed
Natlem opened this issue Oct 27, 2022 · 3 comments
Closed

SSL Certificates generation #2302

Natlem opened this issue Oct 27, 2022 · 3 comments
Labels
type / question Issue type: question

Comments

@Natlem
Copy link

Natlem commented Oct 27, 2022

❓Question

Hello there,

Is it possible to have a quick guide on how to generate and deploy SSL certs for (https://aimstack.readthedocs.io/en/latest/using/remote_tracking.html#ssl-support)
I think this would greatly help a lot of SSL newbies like me.

Thanks

@Natlem Natlem added the type / question Issue type: question label Oct 27, 2022
@gorarakelyan
Copy link
Contributor

@Natlem you can generate self-signed ssl certificates via openssl. See more details here: https://stackoverflow.com/questions/10175812/how-to-generate-a-self-signed-ssl-certificate-using-openssl

Please let me know if this helps.

@Natlem
Copy link
Author

Natlem commented Oct 28, 2022

Hello @gorarakelyan,

Thanks for your reply. I tried to generate a certificate with the command provided in the link:
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365 -subj '/CN={DOMAIN_NAME}/subjectAltName=IP:{SERVER_IPV4}'

I have an error on the server side:
E1028 13:12:42.106779379 2003 ssl_transport_security.cc:1847] No match found for server name: {SERVER_IPV4}

On the clients side:
failed to connect to all addresses; last error: UNKNOWN: Ssl handshake failed

@Natlem
Copy link
Author

Natlem commented Nov 4, 2022

I managed to solve it. For those, who would have similar issue in the future, here how I did:
$ openssl genrsa -out server.key 2048
$ openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650 -subj '/CN={DOMAIN_NAME}'

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

No branches or pull requests

2 participants