I am trying to find a way to use /n Software's IPWorks server/client components with a self-signed SSL certificate.
I am trying this on the client side:
cl.SSLCertStoreType := cstPFXFile;
cl.SSLCertStore := 'cert.pfx';
cl.SSLCertStorePassword := 'password';
cl.Connect('localhost',5050);
And this on the server side:
server.SSLCertStoreType := cstPFXFile;
server.SSLCertStore := 'cert.pfx';
server.SSLCertStorePassword := 'password';
server.LocalPort:= 5050;
server.SSLEnabled:=true;
server.Listening := true;
The PFX file is valid, but the app gives an error that it's not a valid certificate.
Does somebody have a working example ?
As per this document on IPWorks site, the self-signed certificate can be generated using CertMgr class provided by same IPWorks library.
https://www.nsoftware.com/kb/xml/11080101.rst