Problems with OpenSSL in windows 10

0

I am trying to set up a jupyter notebook server on my home computer so I can access it remotely. Following a tutorial “https://jupyter-notebook.readthedocs.io/en/stable/public_server.html” I came up against the following problem when invoking OpenSSL to create a key and a certificate. I can successfully create the key but not the certificate. I get the following message in CMD

Microsoft Windows [Version 10.0.17134.885]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\jorge>cd .jupyter

C:\Users\jorge\.jupyter>openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mykey.key -out mycert.pem
Can't open C:\OpenSSL-Win32\bin\openssl.cfg for reading, No such file or directory
11784:error:02001003:system library:fopen:No such process:crypto\bio\bss_file.c:72:fopen('C:\OpenSSL-Win32\bin\openssl.cfg','r')
11784: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 'mykey.key'
-----
unable to find 'distinguished_name' in config
problems making Certificate Request
11784:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or environment variable:crypto\conf\conf_lib.c:270:

Jorge Alonso

Posted 2019-08-04T17:57:45.530

Reputation: 1

No answers