This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Unable to open KEY file

Hi, have created the public and private keys in a folder but unbale to open the files,

file types are KEY File and Microsoft Publisher Document. Any help would be appreciated.

    1. The Certificate will be delivered most likely in a PFX file format.  This contains the certificate and private key.  Serv-U needs to use this private key as part of it's SSL/TLS configuration.  Locate the file from the certificate provider.
    2. First step will be extracting the private key from the PFX file.  This requires the open source utility "OpenSSL" to be installed.  It can be found here; https://wiki.openssl.org/index.php/Binaries   Download the installer and set up your machine to use OpenSSL if it is not done already.
    3. Launch a command line and run the following command to extract the private key file;

      openssl pkcs12 -in certificatefilename.pfx -nocerts -out certificatefilename.key

      You will be asked to enter the Import password.  This will be have been provided to you by the person making the CSR or from the certificate provider
    4. You will then be asked to add a passphrase (password) to the key file.  Choose and record this password as it will be needed in Serv-U.
    5. Next will be extracting the certificate to install from the PFX file.  This is done with a similar command line;

    openssl pkcs12 -in certificatefilename.pfx -clcerts -nokeys -out certificatefilename.pem     (You will need to enter the password again)

    You should now have the two components of the certificate needed to apply on the Serv-U host under it's "Encryption" configuration page.  All you need now is to add the Certificate Authority's "Root Certificate" that signed your host certificate and you are good to go.