You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I updated both rustls and rustls-pemfile in this pr: #677
There I for now handled to explicitly only load X509Certificate as the needed Certificate struct (https://docs.rs/rustls/latest/rustls/struct.Certificate.html) says the binary vector needs to be "The certificate must be DER-encoded X.509.". I don't know if the read_one api call somehow converts this, I don't know too much about rustls or tls at all. But reading your issue somehow remembered me of those lines of code. Probably I could just give back the Vec for RSAKey and PKCS8Key and things just work^tm?
TLS doesn't work for me.
I cargo install'd miniserve and provided the
--locked
flag, too.Provided certificates look like this:
Edit: I created these certificates using
cfssl
which apparently does not support PKCS#8.Edit2: Can confirm. After converting my key to PKCS#8 all is fine.
Could we maybe get support for PKCS#1? :)
Edit3: Apparently, you're running right into this issue: rustls/rustls#173
Which is not going to be fixed because...
Unfortunately, the API exposed by
rustls-pemfile
is incompatible with your rustls version'sServerConfig
API.The text was updated successfully, but these errors were encountered: