Member-only story

Generate SCR SSL Certificate with “Subject Alternative Names”

Maciej
2 min readDec 9, 2020

--

Introduction

This quick tutorial show how in easy way generate Certificate Signing Request with Subject Alternative Names

How to do it ?

  • First we need to have openssl installed, we can download from this site.
  • Configuration for CSR
  • Generate RSA key file
C:\temp
λ openssl genrsa -out example.com.key 2048
Generating RSA private key, 2048 bit long modulus
...........................................................................................................................+++
......+++
e is 65537 (0x10001)
C:\temp
λ
  • Generate CSR
C:\temp
λ openssl req -new -key example.com.key -out example.com.csr -config example.com.cnf
  • Now we can verify the CSR
C:\temp
λ openssl req -in example.com.csr -noout -text
Certificate Request:
Data:
Version: 0 (0x0)
Subject: C=PL, L=Warsaw, O=Example, OU=EX…

--

--

Maciej
Maciej

Written by Maciej

DevOps Consultant. I’m strongly focused on automation, security, and reliability.

No responses yet