Self Signed Certificates



Similar documents
Application Note AN1502

Enterprise SSL Support

Using Client Side SSL Certificate Authentication on the WebMux

Yealink Technical White Paper. Contents. About VPN Types of VPN Access VPN Technology... 3 Example Use of a VPN Tunnel...

AN054 SERIAL TO WI-FI (S2W) HTTPS (SSL) AND EAP SECURITY

CERTIFICATE-BASED SINGLE SIGN-ON FOR EMC MY DOCUMENTUM FOR MICROSOFT OUTLOOK USING CA SITEMINDER

About VPN Yealink IP Phones Compatible with VPN Installing the OpenVPN Server Configuring the OpenVPN Feature on IP Phones...

VPN with INSYS routers Creating X509.v3 Certificates for VPNs with XCA. Configuration Guide

Laboratory Exercises VI: SSL/TLS - Configuring Apache Server

Unifying Information Security. Implementing TLS on the CLEARSWIFT SECURE Gateway

Low cost secure VPN MikroTik SSTP over OpenIXP (Indonesian Internet) ASTA INFORMATICS Faisal Reza

Virtual Private Network (VPN) Lab

Configuring SSL VPN with Mac OS X and iphone Clients. Configuration tested. Network Diagram

Sun Java System Web Server 6.1 Using Self-Signed OpenSSL Certificate. Brent Wagner, Seeds of Genius October 2007

HOWTO. Configure Nginx for SSL with DoD CAC Authentication on CentOS 6.3. Joshua Penton Geocent, LLC

EventTracker Windows syslog User Guide

Go to Policy/Global Properties/SmartDashboard Customization, click Configure. In Certificates and PKI properties, change host_certs_key_size to 2048

Generating and Installing SSL Certificates on the Cisco ISA500

Oracle Mobile Security Suite Workshop. Installation

HP Device Manager 4.7

Crypto Lab Public-Key Cryptography and PKI

Obtaining SSL Certificates for VMware View Servers

SSL Interception on Proxy SG

Virtual Private Network with OpenVPN

ViMP 3.0. SSL Configuration in Apache 2.2. Author: ViMP GmbH

Obtaining SSL Certificates for VMware Horizon View Servers

Linux Deployment Guide. How to deploy Network Shutdown Module for Linux

How to Connect SSTP VPN from Windows Server 2008/Vista to Vigor2950

HOWTO: How to configure IPSEC gateway (office) to gateway

Dlink DFL 800/1600 series: Using the built-in MS L2TP/IPSEC VPN client with certificates

Configuring Multiple ACE Management Servers VMware ACE 2.0

Encrypted Connections

SecuritySpy Setting Up SecuritySpy Over SSL

WebApp S/MIME Manual. Release Zarafa BV

VPN (OpenVPN) Setting Guide. Johnny

NAS 323 Using Your NAS as a VPN Server

Using Microsoft s CA Server with SonicWALL Devices

Generating and Renewing an APNs Certificate. Technical Paper May 2012

ISY994 Series Network Security Configuration Guide Requires firmware version Requires Java 1.7+

Domino and Internet. Security. IBM Collaboration Solutions. Ask the Experts 12/16/2014

Ciphermail Gateway Separate Front-end and Back-end Configuration Guide

VPN with INSYS routers Configuring OpenVPN server with certificate-based authentication. Configuration Guide

Cisco QuickVPN Installation Tips for Windows Operating Systems

SSL Certificate Based VPN

Scenarios for Setting Up SSL Certificates for View

HTTPS Configuration for SAP Connector

Working with Certificate and Key Files in MatrixSSL

NAS 322 Connecting Your NAS to a VPN

Securepoint Security Systems

Managing the SSL Certificate for the ESRS HTTPS Listener Service Technical Notes P/N REV A01 January 14, 2011

STONEGATE IPSEC VPN 5.1 VPN CONSORTIUM INTEROPERABILITY PROFILE

GlobalProtect Configuration for IPsec Client on Apple ios Devices

# openssl genrsa -out /etc/ssl/private/ca.key 1024 Generating RSA private key, 1024 bit long modulus e is (0x10001

How to generate SSL certificates for use with a KVM box & XViewer with XCA v0.9.3

Using certificates as authentication method for VPN connections between Netgear ProSafe Routers and the ProSafe VPN Client

Cisco Expressway Certificate Creation and Use

Apache, SSL and Digital Signatures Using FreeBSD

Clearswift Information Governance

Creating Certificate Authorities and self-signed SSL certificates

Replacing VirtualCenter Server Certificates VMware Infrastructure 3

Written by Saif ur Rab Monday, 07 December :19 - Last Updated Monday, 27 December :19

How to Implement Two-Way SSL Authentication in a Web Service

Creating and Managing Certificates for My webmethods Server. Version 8.2 and Later

MobileIron Tunnel v1.0.1 update requirements. Tech Series. 6/17/2014 Written by Ulrik Van Schepdael Mobco bvba

Customizing SSL in CA WCC r11.3 This document contains guidelines for customizing SSL access to CA Workload Control Center (CA WCC) r11.3.

KMIP installation Guide. DataSecure and KeySecure Version SafeNet, Inc

Document Classification: Public Document Name: SAPO Trust Centre - Generating a SSL CSR for IIS with SAN Document Reference:

Service Manager 9.32: Generating SSL Profiles for an F5 HWLB

StoneGate SSL VPN Technical Note Adding Bundled Certificates

Use Shrew Soft VPN Client to connect with IPSec VPN Server on RV130 and RV130W

LoadMaster SSL Certificate Quickstart Guide

Browser-based Support Console

HOWTO: How to configure VPN SSL roadwarrior to gateway

User s guide. APACHE SSL Linux. Using non-qualified certificates with APACHE SSL Linux. version 1.3 UNIZETO TECHNOLOGIES S.A.

Marriott Enrollment Server for Web User Guide V1.4

Quick Note 040. Create an SSL Tunnel with Certificates on a Digi TransPort WR router using Protocol Switch.

Tivoli Endpoint Manager for Remote Control Version 8 Release 2. Internet Connection Broker Guide

Quick Note 041. Digi TransPort to Digi TransPort VPN Tunnel using OpenSSL certificates.

Use Enterprise SSO as the Credential Server for Protected Sites

Creation and Management of Certificates

How to: Install an SSL certificate

CLIENT CERTIFICATE (EAP-TLS USE)

How-to-Guide: SAP Web Dispatcher for Fiori Applications

How to Optimize MS Outlook Exchange Traffic Over SSL

Replacing vcenter Server 4.0 Certificates VMware vsphere 4.0

Cisco TelePresence VCS Certificate Creation and Use

Red Hat Linux Guide to Installing Root Certificates, Generating CSR and Installing SSL Certificate

DOCUMENTUM CONTENT SERVER CERTIFICATE BASED SSL CONFIGURATION WITH CLIENTS

Installing Certificates on Spectralink 8400 Handsets

How To Configure L2TP VPN Connection for MAC OS X client

Application Note 47. Configuring a Windows OpenVPN server and a Digi TransPort router as an OpenVPN client. UK Support August 2012

App Orchestration 2.0

Installing BIRT Analytics 4.4

Workflow Guide. Establish Site-to-Site VPN Connection using Digital Certificates. For Customers with Sophos Firewall Document Date: November 2015

Introduction SSL-VPN. Creating and Installing Digital Certificates on SonicWALL SSL-VPN Appliances

Create an ios App using Adobe Flash Side by Side Training, And without using a Mac

SSL Certificates HOWTO

MCTS Guide to Microsoft Windows Server 2008 Applications Infrastructure Configuration (Exam # )

SolarWinds Technical Reference

Transcription:

TECH NOTE 003 Self Signed Certificates X.509 Certificate Creation Using Easy-Rsa with OpenVPN www.westermo.com page 1

AIM This Tech Note will show how to create X.509 certificates with easy-rsa in OpenVPN for MS Windows. The certificates can be used to authenticate VPN tunnel end-points for both SSL and IPSec tunnels. All examples in this note are made using MS Windows 7 Professional with Service Pack 1 and OpenVPN for MS Windows version 2.3.4-I001. www.westermo.com page 2

Build Certificates with Easy-rsa 1. Make sure easy-rsa is installed with OpenVPN. Install easy-rsa by clicking the tick box in the OpenVPN installer. 2. Use MS Windows Command Promt to go to the easy-rsa folder. Default path is C:\Program Files\OpenVPN\easy-rsa. Please Note! On MS Windows systems from Vista and onwards easy-rsa will have to be run with administrator rights. 3. Start by running the init-config.bat script, this will copy configuration files into place (this will overwrite any preexisting vars.bat and openssl.cnf files). www.westermo.com page 3

4. Edit the vars.bat file with a text editor like Notepad++ with admininistrator rights or directly from the MS Windows Command Promt if the MS-DOS command edit is installed. Path to the openssl configuration file. This needs to be changed if easy-rsa has been installed in a different folder than the default. Folder where the certificates are stored after build. The key size of default 1024 is sufficient for most applications. Higher key sizes will increase security but will also have an impact on performance. Fill in the parameters as this will be the template for the certificates created later. PKCS#11 are not supported by Westermo products and can be left with default values. www.westermo.com page 4

5. Run the vars.bat and clean-all.bat scripts to create the keys folder and the database files. vars.bat will set the parameters configured. clean-all.bat creates the keys folder from vars.bat and the index.txt and serial files. The following files should now be present in the KEY_DIR folder (keys) as specified in vars.bat. index.txt serial www.westermo.com page 5

6. Now certificates can be generated. Start by building the Certificate Authority (CA-certificate) which can create and sign client certificates and thereby authenticate connecting units. Run the build-ca.bat script to build the CA-certificate. Parameters already filled in from the vars.bat file. Name the certificate to distinguish it from other certificates created The following files should now be generated in the KEY_DIR folder. ca.crt ca.key www.westermo.com page 6

7. Next build the server certificate by running the build-key-server.bat <server certificate file name> script. Parameters already filled in from the vars.bat file. Challange passwords are not supported by Westermo units so leave this empty. Name the certificate to distinguish it from other certificates created Sign and commit the certificate. www.westermo.com page 7

The following files should now be generated in the KEY_DIR folder. 01.pem Server.crt Server.csr Server.key www.westermo.com page 8

6. Build client certificate/certificates by running the build-key.bat <client certificate file name> script. Parameters already filled in from the vars.bat file. Challange passwords are not supported by Westermo units so leave this empty. Name the certificate to distinguish it from other certificates created Sign and commit the certificate. www.westermo.com page 9

The following files should now be generated in the KEY_DIR folder. 02.pem Client01.crt Client01.csr Client01.key www.westermo.com page 10

The PKCS#12 format If preferred the client certificates can also be created in the PKCS#12 format which basically bundles the three files ca.crt, client.crt and client.key into one file and password protects it. Run the build-key-pkcs12.bat <client certificate file name> script. Please Note! This format is mandatory for the Westermo MRD-3xx 3G-routers. Parameters already filled in from the vars.bat file. Parameters already filled in from the vars.bat file. Name the client certificate with a unique identity. Password needed????? Challange passwords are not supported by Westermo units so leave this empty. Name the certificate to distinguish it from other certificates created Sign and commit the certificate. Sign and commit the certificate. Enter an Export Password for the certificate Add an export password for the PKCS#12 certificate. This password must be entered before the certificate can be uploaded to a unit. www.westermo.com page 11

The following files should now be generated in the KEY_DIR folder. 03.pem Client02.crt Client02.csr Client02.key Client02.p12 www.westermo.com page 12

9. Finally generate Diffie-Hellman parameters for the server with the build-dh.bat script. The Diffie-Hellman protocol is used to safely exchange secret keys. www.westermo.com page 13

The following file should now be generated in the KEY_DIR folder. dh1024.pem www.westermo.com page 14

WeOS IPSec Certificates When generating certificates for IPSec VPN tunnels that should be used with WeOS units an additional conversion is needed. Generate certificates as usual following this Tech Note. When the needed certificates have been generated the private key files for the server and client needs to be converted into the.pem format. The private keys generated starts and ends with these headers: -----BEGIN PRIVATE KEY-----.. -----END PRIVATE KEY----- But the IPSec implementation in WeOS only allows these headers of the.pem file format: -----BEGIN RSA PRIVATE KEY-----.. -----END RSA PRIVATE KEY----- The easiest way to make the certificates work with IPSec is to simply convert the already generated.key files into.pem files and this is done with easy-rsa as well. In the cmd window go to the folder where the newly generated SSL VPN certificates are stored using the cd <Folder> command. Then issue the below stated commands for the server and client keys to convert them to the.pem format. openssl rsa -in <nameofserverkey>.key -outform pem > <nameofserverkey>.pem openssl rsa -in <nameofclientkey>.key -outform pem > <nameofclientkey>.pem www.westermo.com page 15

The Files Created File Security Description 01.pem public Same file as Server.crt but different file ending. 02.pem public Same file as Client01.crt but different file ending. 03.pem public Same file as Client02.crt but different file ending. ca.crt public CA certificate, must be available on both client and server. ca.key secret! CA key, must be kept very secret and only on the CA. Server.crt public Signed certificate for the server, must be on the VPN server. Server.key secret! Private RSA key of the client, must be on the VPN server. Server.csr Certificate signing request not needed. Client01.crt public Signed certificate for the client, must be on the VPN client. Client01.key secret! Private RSA key of the client, must be on the VPN client. Client01.csr Certificate signing request not needed. Client02.p12 secret! Only the.p12 file is needed on the VPN client. Client02.crt public Also generated with the PKCS#12 build command. Client02.key secret! Also generated with the PKCS#12 build command. Client02.csr Also generated with the PKCS#12 build command. dh1024.pem public Contains the Diffie-Hellman key, must be on the VPN server. index.txt index.txt.attr serial Easy-rsa database file. Easy-rsa database file. Easy-rsa database file. File types needed by Westermo WeOS products: Server: ca.crt dh1024.pem server.crt server.key / server.pem Clients: ca.crt client.crt client.key / client.pem or client.p12 File types needed by Westermo MRD-3xx 3G-routers client.p12 www.westermo.com page 16

www.westermo.com page 17

www.westermo.com page 18

Revision history for version 2.0 Revision Rev by Revision note Date 00 ML First version 150518 01 02 03 04 05 06 07 www.westermo.com page 19

www.westermo.com page 20