Unable to use self signed certificates with tokio-rustls

Viewed 1046

I'm trying to get the examples under https://github.com/quininer/tokio-rustls/tree/master/examples working. I am using self signed key/cert, generated using the openssl tool.

But the handshake fails with a webpki error: Error: Custom { kind: InvalidData, error: WebPKIError(CAUsedAsEndEntity) }. Found this related thread: https://github.com/briansmith/webpki/issues/114, but could not tell the current status of this issue

We probably need to live with self signed certs for some time. Is there any workaround, or any other options here?

Thanks.

0 Answers
Related