htrefil / rkvm

Virtual KVM switch for Linux machines
MIT License
386 stars 50 forks source link

Add option for non-tls operation #23

Open Zapeth opened 3 years ago

Zapeth commented 3 years ago

I've been trying to set up a Linux server <=> Windows clients environment but every time I try to connect with a client I get: Error: Failed to connect: The certificate's CN name does not match the passed value. (os error -2146762481) (error constant name: CERT_E_CN_NO_MATCH)

I've already tried generating various certificates with different altNames (IP and DNS) but nothing worked.

I realize this is probably not an issue with this crate, but I'd still like to request an option to run the server without requiring a certificate.

For a quick and dirty workaround I disabled https://github.com/htrefil/rkvm/blob/bf133665eb446d9f128d02e4440cc67bce50f666/client/src/main.rs#L34-L37 and https://github.com/htrefil/rkvm/blob/bf133665eb446d9f128d02e4440cc67bce50f666/server/src/main.rs#L85-L91, but a proper configurable implementation would be obviously preferred.