Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Creating a Self-Signed SSL Certificate with an Exportable Private Key

RSS
Modified on Fri, Sep 07, 2018, 4:08 PM by Administrator Categorized as Windows (OS, IE, IIS, and MSMQ)

Overview

CERTREQ can generate a self-signed certificate, but the private key won't be exportable. This article provide a procedure to create a self-signed SSL certificate with a private key that is exportable.

Pre-requisites

  • OpenSSL for Windows can be downloaded from this page.

Procedure

Adapted from: http://stackoverflow.com/questions/13509548/how-to-create-a-private-key-exportable-self-signed-certificate

(1) Open a Command Window

IMPORTANT: Run as Administrator

(2) Create a self-signed certificate

"C:\OpenSSL-Win64\bin\openssl.exe" req -x509 -days 30 -newkey rsa:2048 -keyout mycert.pem -out mycert.pem

(3) Enter and Validate the PEM Pass Phrase

(4) Enter the certficate info

(5) Convert the certificate to a PFX file

"C:\OpenSSL-Win64\bin\openssl.exe" pkcs12 -export -in mycert.pem -out mycert.pfx

(6) If necessary, copy the PFX file to the server where it's to be installed.

(7) Double-click the PFX file to open the Certificate Import Wizard.

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.