K
K
Kirill Fs2019-06-08 19:25:48
API
Kirill Fs, 2019-06-08 19:25:48

How to fix an error when creating a self-written openssl vkapi.crt?

https://vk.com/dev/certificat (I took the info from there)
I am making a bot for the VK group, and of course I need to make a .p12 file. Downloaded OpenSSL 32bit Launched, entered the command " openssl req -newkey rsa:2048 -sha256 -nodes -keyout vkapi.key -x509 -days 365 -out vkapi.crt -subj "/C=RU/ST=Noscow/L=Moscow/ O=VK API Club/CN=vkapi" "introduced an error
Can't open C:\Program Files (x86)\Common Files\SSL/openssl.cnf for reading, No s
uch file or directory
6056:error:02001003 :system library:fopen:No such process:crypto\bio\bss_file.c:7
2:fopen('C:\Program Files (x86)\Common Files\SSL/openssl.cnf','r')
6056:error :2006D080:BIO routines:BIO_new_file:no such file:crypto\bio\bss_file.c
:79:
Generating a RSA private key
............................+++++
......+++++
writing new private key to ' vkapi.key' -----
unable to find '
distinguished_name' in config
problems making Certificate Request The problem is that only vkapi.key was created and there is no vkapi.crt. What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
arto, 2020-02-21
@artopp

mistake

6056:error:02001003:system library:fopen:No such process:crypto\bio\bss_file.c:7
2:fopen('C:\Program Files (x86)\Common Files\SSL/openssl.cnf','r')

tells us what you are missing
C:\Program Files (x86)\Common Files\SSL/openssl.cnf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question