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 ?
Close the current cmd window and open new cmd window.
Continue from the second "req" step.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With