I have CTW running just fine with IIS though I would like to use the certs for FileZilla and also my small email server.
I have read that the certs and held within a pfx file in the “C:\Users\Administrator\Documents\SSL_Certs” folder
I did find a small instruction in this forum for FileZilla and aslo for extracting the certs inside the pfx but I can’t get it to work.
My locations are…
OpenSSL is located at - C:\Program Files\OpenSSL-Win64
Where the pfx file is located - C:\ProgramData\Certify\certes\assets\pfx
Where I want to store the extracted cert files - C:\Users\Administrator\Documents\SSL_Certs
CTW installed at C:\Program Files\CertifyTheWeb
Here is the powershell script
# required to access the $result parameter
# Alias to your OpenSSL install
**set-alias ossl “C:\Program Files\OpenSSL-Win64\bin\openssl” **
# set PFXFILEPATH in Enviro Variables to C:\ProgramData\Certify\certes\assets\pfx
# set PRIVATEKEYPATH in Enviro Variables to "C:\Users\Administrator\Documents\SSL_Certs
# set CERTPATH in Enviro Variables to "C:\Users\Administrator\Documents\SSL_Certs
ossl pkcs12 -in %PFXFILEPATH% -nocerts -nodes -passin pass: -out %PRIVATEKEYPATH%
ossl pkcs12 -in %PFXFILEPATH% -chain -nokeys -nodes -passin pass: -out %CERTPATH%
# Update keypath to where your keys will be saved and their names.
$keypath = "C:\Users\Administrator\Documents\SSL_Certs"
$key = $keypath + "letsencrypt.key"
$rsakey = $keypath + "letsencrypt_rsa.key"
$pem = $keypath + "letsencrypt.pem"
# Get the latest PFX file path
$pfx = $result.ManagedItem.CertificatePath
# Create the Key, RSA Key, and PEM file. Use the RSA Key & PEM for FileZilla
ossl pkcs12 -in $pfx -out $key -nocerts -nodes -passin pass:
ossl rsa -in $key -out $rsakey
ossl pkcs12 -in $pfx -out $pem -nokeys -clcerts -passin pass:
Any ideas why it does not work.