in the last weeks I had some trouble to install a secured web server on our in-house server. This server is a Microsoft IIS. The certificate was created with the IIS, but was not in the format for Xojo. I got a certificate from the administrator, but this was not compatible with Xojo.
Today I got the correct file, but I had to convert it. For those, who wants to use Xojo on an in-house system, I 'll describe the necessary steps here.
First, you need an *.pfx file from the IIS. This file is password protected.
Then extract the private key from it. I used as new password the same as from the pfx file. This makes it easier
openssl pkcs12 -in <server.pfx> -nocerts -out <server-encrypted.key>
Then extract the private key from it
openssl pkcs12 -in <server.pfx> -clcerts -nokeys -out <server.crt>
Now we remove the password from the private key
openssl rsa -in <server-encrypted.key> -out <server-decrypted.key>
The last step is to create the crt file for Xojo. This is a text file with the name of your app and the extension crt. Copy the data from <server.crt> and < server-decrypted.key> into this file. The necessary part are within
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
All other informations are not necessary.
I hope this helps…