Jump to content
AllanF

Loading SSL Certificates into EXE (TSslContext)

Recommended Posts

I am using TSslFtpServer , TSslWSocketServer along with TSSLContext component successfully when using the SslCAFile , SslCertFile and SslPrivateKeyFile properties to point to files on the Hard Disk.

I noticed there are matching SslCALines , SslCertLines and SslPrivateKeyLines . I filled these properties with text from the corresponding files but it did not work. I am asking this because I would prefer not to expose the Certificate files.

 

Share this post


Link to post

The latest versions of TSslFtpServer and TSslWSocketServer do not require to use an SslContext, which was never well documented and is complicated to use.  You should instead use IcsHosts to specify listeners, SSL properties and certificates,  The IcsHosts SslCert property can be a file name or an string containing a PEM certificate and the component loads either automatically.  This is all done in TSslWSocketServer.LoadOneCert if you really want to do it the old way.

 

Angus

 

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×