Import and convert SSL files (2024)

April 12, 2024

Contributed by:

B

C

S

You can now import SSL resources, such as certificates, private keys, CRLs, and DH keys, from remote hosts even if FTP access to these hosts is not available. This feature is especially helpful in environments where shell access to the remote host is restricted. Default folders are created in /nsconfig/ssl as follows:

  • For certificate files: /nsconfig/ssl/certfile
  • For private keys: the /nsconfig/ssl/keyfile
  • For CRLs: /var/netscaler/ssl/crlfile
  • For DH keys: /nsconfig/ssl/dhfile

Imports from both HTTP and HTTPS servers are supported. However, the import fails if the file is on an HTTPS server that requires client certificate authentication for access.

Notes:

  • The import command is not stored in the configuration (ns.conf) file, because reimporting the file after a restart might cause an error.
  • The import command fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access, and the issuer certificate of the HTTPS server is not present in the /etc/ssl directory on NetScaler to authenticate the HTTPS server.

Import a certificate file

You can use the CLI and GUI to import a file (resource) from a remote host.

Import a certificate file from a remote host by using the CLI

At the command prompt, type:

import ssl certFile [<name>] [<src>]<!--NeedCopy-->

Example:

import ssl certfile my-certfile http://www.example.com/file_1<!--NeedCopy-->

To remove a certificate file, use the rm ssl certFile command, which accepts only the ‘name’ argument.

Import a key file from a remote host by using the CLI

At the command prompt, type:

import ssl keyFile [<name>] [<src>]<!--NeedCopy-->

Example:

import ssl keyfile my-keyfile http://www.example.com/key_file<!--NeedCopy-->
show ssl keyfile Name : my-keyfile URL : http://www.example.com/key_file<!--NeedCopy-->

To remove a key file, use the rm ssl keyFile command, which accepts only the ‘name’ argument.

Import a CRL file from a remote host by using the CLI

At the command prompt, type:

import ssl crlFile [<name>] [<src>]<!--NeedCopy-->

To remove a CRL file, use the rm ssl crlFile command, which accepts only the <name> argument.

Example:

import ssl crlfile my-crlfile http://www.example.com/crl_fileshow ssl crlfile Name : my-crlfile URL : http://www.example.com/crl_file<!--NeedCopy-->

Import a DH file from a remote host by using the CLI

At the command prompt, type:

import ssl dhFile [<name>] [<src>]<!--NeedCopy-->

Example:

import ssl dhfile my-dhfile http://www.example.com/dh_fileshow ssl dhfile Name : my-dhfile URL : http://www.example.com/dh_file<!--NeedCopy-->

To remove a DH file, use the rm ssl dhFile command, which accepts only the <name> argument.

Import an SSL resource by using the GUI

Navigate to Traffic Management > SSL > Imports, and then select the appropriate tab.

Import PKCS#8 and PKCS#12 certificates

If you want to use certificates and keys that you already have on other secure servers or applications in your network, you can export them, and then import them to the NetScaler appliance. You might have to convert exported certificates and keys before you can import them to the NetScaler appliance.

For the details of how to export certificates from secure servers or applications in your network, see the documentation of the server or application from which you want to export.

Note:

For installation on the NetScaler appliance, key and certificate names cannot contain spaces or special characters other than those characters supported by the UNIX file system. Follow the appropriate naming convention when you save the exported key and certificate.

A certificate and private key pair is commonly sent in the PKCS#12 format. The appliance supports PEM and DER formats for certificates and keys. To convert PKCS#12 to PEM or DER, or PEM or DER to PKCS#12, see the “Convert SSL certificates for import or export” section later in this page.

The NetScaler appliance does not support PEM keys in PKCS#8 format. However, you can convert these keys to a supported format by using the OpenSSL interface, which you can access from the CLI or the configuration utility. Before you convert the key, you need to verify that the private key is in PKCS#8 format. Keys in PKCS#8 format typically start with the following text:

-----BEGIN ENCRYPTED PRIVATE KEY-----leuSSZQZKgrgUQ==-----END ENCRYPTED PRIVATE KEY-----<!--NeedCopy-->

Open the OpenSSL interface from the CLI

  1. Open an SSH connection to the appliance by using an SSH client, such as PuTTY.
  2. Log on to the appliance by using the administrator credentials.
  3. At the command prompt, type shell.
  4. At the shell prompt type openssl.

Open the OpenSSL interface from the GUI

Navigate to Traffic Management > SSL and, in the Tools group, select OpenSSL interface.

Convert a non-supported PKCS#8 key format to an encrypted supported key format by using the OpenSSL interface

At the OpenSSL prompt, type one of the following commands, depending on whether the non-supported key format is of type RSA or ECDSA:

OpenSSL>rsa- in <PKCS#8 Key Filename> -des3 -out <encrypted Key Filename>OpenSSL>ec -in <PKCS#8 Key Filename> -des3 -out <encrypted Key Filename><!--NeedCopy-->

Parameters for converting an unsupported key format to a supported key format

  • PKCS#8 Key Filename: The input file name of the incompatible PKCS#8 private key.
  • encrypted Key Filename: The output file name of the compatible encrypted private key in PEM format.
  • unencrypted Key Filename: The output file name of the compatible unencrypted private key in PEM format.

Convert SSL certificates for import or export

A NetScaler appliance supports the PEM and DER formats for SSL certificates. Other applications, such as client browsers and some external secure servers, require various public key cryptography standard (PKCS) formats. The appliance can convert the PKCS#12 format to PEM or DER format for importing a certificate to the appliance, and can convert PEM or DER to PKCS#12 for exporting a certificate. For more security, conversion of a file for import can include encryption of the private key with the DES or DES3 algorithm.

Notes:

  • If you use the GUI to import a PKCS#12 certificate, and the password contains a dollar sign ($), back quote (`), or escape () character, the import might fail. If it does, the ERROR: Invalid password message appears. If you must use a special character in the password, be sure to prefix it with an escape character () unless all imports are performed by using the CLI.
  • Starting from NetScaler release 14.1 build 21.x, the length of the path is increased from 63 to 255 characters for the certificate and key parameters in the following commands:

    • convert ssl pkcs12
    • convert ssl pkcs8

Convert the format of a certificate by using the CLI

At the command prompt, type the following command:

convert ssl pkcs12 <outfile> [-import [-pkcs12File <inputFilename>] [-des | -des3] [-export [-certFile <inputFilename>] [-keyFile <inputFilename>]]<!--NeedCopy-->

During the operation, you are prompted to enter an import password or an export password. For an encrypted file, you are also prompted to enter a passphrase.

Example:

convert ssl pkcs12 Cert-Import-1.pem -import -pkcs12File Cert-Import-1.pfx -desconvert ssl pkcs12 Cert-Client-1.pfx -export -certFile Cert-Client-1 -keyFile Key-Client-1<!--NeedCopy-->

Convert the format of a certificate by using the GUI

  1. Navigate to Traffic Management > SSL and, in the Tools group, select Import PKCS#12.

    Import and convert SSL files (1)

  2. Specify the PEM certificate name in the Output File Name field.

  3. Browse to the location of the PFX certificate on your local computer or the appliance.

    Import and convert SSL files (2)

  4. Click OK.

  5. Click Manage Certificates / Keys / CSRs to view the converted PEM file.

    Import and convert SSL files (3)

  6. You can view the uploaded PFX file and the converted PEM file.

    Import and convert SSL files (4)

  7. Navigate to SSL > Certificates > Server Certificates and click Install.

  8. Specify a Certificate-Key Pair Name.

  9. Browse to the location of the PEM file.

  10. Specify the password when prompted.

  11. Click Install.

    Import and convert SSL files (5)

  12. Bind the certificate-key pair to an SSL virtual server.

Import and convert SSL files (2024)

FAQs

How to convert an SSL certificate? ›

Converting an SSL Certificate to PFX/PKCS12 (SSLShopper Tool)
  1. Access the Tool. Navigate your web browser to the certificate converter tool on SSLShopper.com.
  2. Select Type of Current Certificate. ...
  3. Select Type to Convert To. ...
  4. Upload Certificate. ...
  5. Upload Private Key. ...
  6. Upload Chain Certificate Files. ...
  7. PFX Password. ...
  8. Convert Certificate.

How do I import and export an SSL certificate? ›

How to Import and Export SSL Certificates
  1. Install the SSL Certificate files to the server where the CSR was generated (see our SSL Certificate installation instructions for help).
  2. Export your certificate from the server to backup files (including the private key).

How do I import an SSL certificate? ›

In the left pane of the console, double-click Certificates (Local Computer). Right-click Personal, point to All Tasks, and then select Import. On the Welcome to the Certificate Import Wizard page, select Next. On the File to Import page, select Browse, locate your certificate file, and then select Next.

How do I transfer SSL certificate from one computer to another? ›

Moving an SSL certificate from one Windows server to another is possible by exporting a PFX file from the server the certificate is already installed on and importing it to another server. Creating a PFX file is the only way to transfer the certificate with the corresponding private key from a Windows server.

How do I import an SSL certificate into exchange? ›

3: Primary Certificate Installation
  1. Log in to the Exchange admin center.
  2. Go to Servers and click on Certificates.
  3. Choose your SSL Certificate; it will have a Pending request status.
  4. Click Complete.
  5. Enter your SSL Certificate's network path & Click OK.
  6. Get back to the Certificate and click Edit.
Mar 3, 2023

How do I extract an SSL certificate? ›

Exporting an SSL Certificate
  1. In the Developer tools, click the Security tab.
  2. In the Security tab, click the View Certificate button.
  3. In the Certificate window, click the Details tab.
  4. Click the Copy to File... ...
  5. Click the Next button in the wizard.
  6. Select the Base-64 encoded X.

Where do I put SSL certificate files? ›

The certificates should be put in a folder dedicated to certificates and key files. An example location would be /usr/local/ssl/crt/. All of your certificates need to be in the same folder.

What is an import certificate? ›

An International Import Certificate is a document required by the importing country in order to recognize that a controlled shipment is entering their country.

How do I import SSL key? ›

Procedure
  • Click System > System Security.
  • Click Console Certificate.
  • Click Import Certificate and Key.
  • In the Server Certificate File field, browse to and select the certificate file that you want to import. ...
  • In the Private Key File field, browse to and select the key file that you want to import.

Can SSL be transferred? ›

If you want to transfer your SSY account from one bank to another or from the post office to a bank, you'll first have to submit an SSY transfer request. You can visit the nearest post office or bank where you have the SSY account for submitting this request.

Can SSL certificate be copied? ›

Yes, you can copy the certificates and private keys.

Where can I change my SSL certificate? ›

Key Steps to Renew Your SSL Certificate
  • Generate a new Certificate Signing Request (CSR) from your hosting provider.
  • Activate your SSL certificate from your hosting dashboard.
  • Validate your SSL certificate using the generated CSR.
  • Install your new SSL certificate either manually or via contacting your hosting provider.
Mar 13, 2024

How do I change my SSL certificate? ›

Key Steps to Renew Your SSL Certificate
  1. Generate a new Certificate Signing Request (CSR) from your hosting provider.
  2. Activate your SSL certificate from your hosting dashboard.
  3. Validate your SSL certificate using the generated CSR.
  4. Install your new SSL certificate either manually or via contacting your hosting provider.
Mar 13, 2024

Can I change SSL certificate to another domain? ›

Changing the domain name for your SSL certificate is not possible. If you need an SSL for a different domain name, the only option is to have a brand new SSL installed.

How to convert a certificate into the appropriate format? ›

Note: This requires 2 commands
  1. STEP 1: Convert P7B to CER. openssl pkcs7 -print_certs -in certificatename.p7b -out certificatename.cer.
  2. STEP 2: Convert CER and Private Key to PFX. openssl pkcs12 -export -in certificatename.cer -inkey privateKey.key -out certificatename.pfx -certfile cacert.cer.
Nov 1, 2023

Is it possible to spoof SSL certificate? ›

Unfortunately, fraudulent SSL certificates have become a problem across the web, leaving major gaps in security for unsuspecting users. By understanding what a fraudulent SSL certificate is and what kinds of warning signs to look for, you can make sure the certificate you install on your site is genuine.

Top Articles
What is an MS70 Grading?
Brave Browser: Is It Safe? A Complete Guide to Internet Safety
Mickey Moniak Walk Up Song
Don Wallence Auto Sales Vehicles
Ingles Weekly Ad Lilburn Ga
Crime Scene Photos West Memphis Three
Jcpenney At Home Associate Kiosk
Fear And Hunger 2 Irrational Obelisk
Craigslist List Albuquerque: Your Ultimate Guide to Buying, Selling, and Finding Everything - First Republic Craigslist
Morgan And Nay Funeral Home Obituaries
Amc Flight Schedule
Lancasterfire Live Incidents
Transfer and Pay with Wells Fargo Online®
Jalapeno Grill Ponca City Menu
Gia_Divine
Water Trends Inferno Pool Cleaner
97226 Zip Code
Att.com/Myatt.
Boston Dynamics’ new humanoid moves like no robot you’ve ever seen
Engineering Beauties Chapter 1
Munis Self Service Brockton
Chicago Based Pizza Chain Familiarly
Student Portal Stvt
Truvy Back Office Login
Doctors of Optometry - Westchester Mall | Trusted Eye Doctors in White Plains, NY
Horses For Sale In Tn Craigslist
Mjc Financial Aid Phone Number
Tamil Movies - Ogomovies
Santa Barbara Craigs List
Craigslist Middletown Ohio
Club Keno Drawings
County Cricket Championship, day one - scores, radio commentary & live text
Ripsi Terzian Instagram
Frostbite Blaster
Unlock The Secrets Of "Skip The Game" Greensboro North Carolina
Build-A-Team: Putting together the best Cathedral basketball team
craigslist | michigan
Gasoline Prices At Sam's Club
Cocaine Bear Showtimes Near Cinemark Hollywood Movies 20
Shoecarnival Com Careers
Lamont Mortuary Globe Az
Professors Helpers Abbreviation
Lawrence E. Moon Funeral Home | Flint, Michigan
Strange World Showtimes Near Marcus La Crosse Cinema
Windy Bee Favor
Bama Rush Is Back! Here Are the 15 Most Outrageous Sorority Houses on the Row
King Fields Mortuary
Lagrone Funeral Chapel & Crematory Obituaries
Latest Posts
Article information

Author: Rev. Leonie Wyman

Last Updated:

Views: 5767

Rating: 4.9 / 5 (59 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Rev. Leonie Wyman

Birthday: 1993-07-01

Address: Suite 763 6272 Lang Bypass, New Xochitlport, VT 72704-3308

Phone: +22014484519944

Job: Banking Officer

Hobby: Sailing, Gaming, Basketball, Calligraphy, Mycology, Astronomy, Juggling

Introduction: My name is Rev. Leonie Wyman, I am a colorful, tasty, splendid, fair, witty, gorgeous, splendid person who loves writing and wants to share my knowledge and understanding with you.