irmen / Pyrolite

Java and .NET client interface for Pyro5 protocol
MIT License
178 stars 47 forks source link

SSL/TLS supprt in dotnet #78

Open TimRivinius opened 4 years ago

TimRivinius commented 4 years ago

Added support for SSL/TLS in dotnet package

I'm not a Java developer and can't add this feature on Java side.

irmen commented 4 years ago

cool, thanks for the contribution!

irmen commented 4 years ago

haven't had the time to test this yet, which I want to do before merging.

TimRivinius commented 4 years ago

I tested it with the Echo Server (Settings made with Environment Variables) and in the Echo test example I simply set the new config items. When Testing Mutual TLS make sure to use the pfx/pkcs12 format since dotnet does not support seperate pem files for cert and key.

irmen commented 4 years ago

any quick guide on how to generate such keys? I'm not too familiar with it

TimRivinius commented 4 years ago

With openssl you can generate such a file with openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt from any normal cert/key combo. You will get 1 file containing both, the key and the cert. The CACERTS file can be in normal pem format.