-
Notifications
You must be signed in to change notification settings - Fork 87
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
tokio-tls: creating server with *.pem certificate #18
Comments
Hello, |
Thoughts @sfackler @LucioFranco? What are the steps to make progress here? |
So I think this comes down to how each system handles TLS. Since, native-tls likes to use the tls offering that is native per OS, then it has to support the common types of keys. So this is why it only uses I would suggest switching to something like |
Are there any steps that Tokio should take? |
@carllerche looks like the issue @sfackler linked is the blocker for us. It might make sense to provide instructions using openssl to convert the keys but I don't really know the cli tool for it that well... |
In case it helps someone else who has a pem certificate they want to use with tokio-tls (at least before this gets fixed), I used the below command to convert a self-signed certificate in pem format with it's unencrypted key in the same file (named 'cert.pem') to a pkcs12 file :
You might also need to add -chain to include the full certificate chain, -CAfile if you need to add CA's, or -inkey if your cert's private key is in it's own file. |
Version
Platform
Windows 10 64-bit
Subcrates
tokio-tls
Description
I'm trying to create a hyper server that uses tokio-tls, but I have
*.pem
and*-key.pem
files instead of a*.p12
archive. How can I achieve this? From what I can see, there's a way of creating aCertificate
, but nothing shows me what do with it after creating it.Some people are of the view that p12 is deprecated/legacy, is this the case? (FiloSottile/mkcert#58 (comment))
The text was updated successfully, but these errors were encountered: