forestaa / passkey-rs-demo

Apache License 2.0
0 stars 0 forks source link

cargo run throwing errors #1

Open ShrutiVerma28 opened 1 year ago

ShrutiVerma28 commented 1 year ago

thread 'main' panicked at 'No PKCS8-encoded private key found in path', server/src/main.rs:67:18 I am facing this error when I am trying to cargo run after installing certs in server. could you please help me with that?

forestaa commented 1 year ago

@ShrutiVerma28 Hmm. Could you show me the contents of ./server/certs/passkey-demo.localhost+2-key.pem?

ShrutiVerma28 commented 12 months ago

mkcert is allowing to use only create-ca / create-cert commands in windows. Below command is not working in windows. mkcert --install mkcert passkey-demo.localhost 127.0.0.1 ::1

Tried creating certificate manually, however failed to map it to the localhost and the host ips provided in the documentation.

please suggest the next steps to troubleshoot/fix this.