Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while creating a CSR [closed]

During the creation of self-signed certificate using OpenSSL command line tool, i'm encountered with an error

First I created a private key

openssl genrsa -out MyKey1.key 2048

While creating a CSR i'm getting an error

openssl req -new -out MyCert1.req -key MyKey1.key -subj /CN=Description of the Server

Error is

problem creating object tsa-policy1=1.2.3.4.1

5364:error:08064066:object identifier routines:OBJ_create:pid exists:crypto\objects\obj_dat.c:689:

Is there something i'm missing here ?

like image 416
g90uagk Avatar asked Jan 19 '17 13:01

g90uagk


2 Answers

  1. Close the current cmd window and open new cmd window.

  2. Continue from the second "req" step.

like image 60
kumar Avatar answered Oct 08 '22 09:10

kumar


I had this same problem while creating a self signed certificate... setting these two environment variables fixed it!

set RANDFILE=c:\demo\.rnd
set OPENSSL_CONF=C:\OpenSSL-Win32\bin\openssl.cfg

I found the solution in this blog post

like image 31
j0zeft Avatar answered Oct 08 '22 10:10

j0zeft