How to Verify Password for an Encrypted SSL Certificate Key File

How to Verify Password for an Encrypted SSL Certificate Key File

book

Article ID: CTX120363

calendar_today

Updated On:

Description

This article explains how to use OpenSSL to decrypt a keyfile that was encrypted by a password.

Background

On NetScaler, when creating an RSA Key, you can change the PEM Encoding Algorithm to DES3 and enter a permanent Passphrase. This encrypts the keyfile and protects it with a password or pass phrase.

User-added image


Instructions

Overview diagram of verifying the keyfile encryption password
User-added image
Complete the following procedure to verify the keyfile encryption password:

  1. If you do not know the name of the keyfile, then navigate to NetScaler > Traffic Management > SSL > SSL Certificates, click the i (information icon) next to the certificate.

    User-added image

    • The Key File Name field indicates the name of the Key File.

      User-added image

  2. SSH to NetScaler using PuTTY, run shell, and change the directory to /nsconfig/ssl.

    User-added image

  3. View the contents of the keyfile by running cat <KeyFileName>. For example, run cat wildcard-2018.key.

    User-added image

  4. At the top of the file, if you see Proc-Type: 4, ENCRYPTED, then your keyfile is encrypted (password protected).

    User-added image

    • If you do not see ENCRYPTED near the top, then your keyfile is not password protected.

      User-added image

  5. Try decrypting the key with OpenSSL by running: openssl rsa -in MyKeyfile.key and type in the password or pass phrase.

    User-added image

  6. If you typed in the correct password, then you’ll see the decrypted key file.

    User-added image

  • If you typed in the wrong password, then you will see unable to load Private Key.

    User-added image

Issue/Introduction

This article explains how to use OpenSSL to decrypt a keyfile that was encrypted by a password.

Additional Information

The OpenSSL tool used in this article is available on most Linux and Unix workstations, as well as on NetScaler Shell. OpenSSL can also be downloaded for Windows users.