From 7ac0b75fc7a39d1e79d23e53f44d1d5493b48cfd Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 19 Jul 2020 00:57:15 +0300 Subject: [PATCH] Tip for key to work For some reason mkcert default generated sertificate doesn't work. Rust panic on `keys.remove(0)`. --- rustls/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rustls/README.md b/rustls/README.md index 839d9cdc..f93e8963 100644 --- a/rustls/README.md +++ b/rustls/README.md @@ -18,6 +18,11 @@ If you want to generate your own cert/private key file, then run: mkcert 127.0.0.1 ``` +If your key doesn't work, convert it to rsa: +```bash +openssl rsa -in key.pem -out key-rsa.pem +``` + [`mkcert`]: https://github.com/FiloSottile/mkcert ### server