Page 1 of 1

is it possible to make ssl connection by sending certificate and key as strings as opposed to file locations?

Posted: Fri 10 May 2019 14:35
by dragan_matic
The properties CACert, Cert and Key of SslOptions property in PgSqlConnection expect file locations.

If I have the certificate and key in memory as strings instead of files is it possible to open the ssl connection or they have to be in files?

Thanks
Dragan

Re: is it possible to make ssl connection by sending certificate and key as strings as opposed to file locations?

Posted: Thu 16 May 2019 13:07
by Pinturiccio
You can use the MemCryptStorage class. It allows storing certs' content in the memory. For more information, please refer to
https://www.devart.com/dotconnect/postg ... tions.html
https://www.devart.com/dotconnect/postg ... orage.html
https://www.devart.com/dotconnect/postg ... ring).html