Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
C:\WINDOWS\system32>openssl req -x509 -out localhost.crt -keyout localhost.key
âopensslâ is not recognized as an internal or external command,
operable program or batch file.
C:\WINDOWS\system32> -newkey rsa:2048 -nodes -sha256
â-newkeyâ is not recognized as an internal or external command,
operable program or batch file.
C:\WINDOWS\system32> -subj â/CN=localhostâ -extensions EXT -config <(
The system cannot find the file specified.
The operating system my web server runs on is (include version):
Windows 10
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I donât know):
I use Windows 10 administrator command prompt
Iâm using a control panel to manage my site (no, or provide the name and version of the control panel):
no.
The version of my client is (e.g. output of certbot --version or certbot-auto --version if youâre using Certbot):
Did you do anything first to install OpenSSL on your system? Iâm not 100% sure of this because I donât use Windows, but I donât think OpenSSL comes preinstalled on Windows systems, but rather has to be downloaded and installed separately. The error you got has two parts:
(1) It looks like your system couldnât find OpenSSL installed at all, so it needs to be installed.
(2) Also, it looks like you pasted a single-line command as multiple lines, so the lines after the first were incorrectly interpreted as separate commands. While the backslashes (\) at the end of each line were meant to prevent that outcome, it seems they donât have the intended effect. I see three or four indications that the command that you followed was designed for a Unix rather than a Windows environment; is it possible that youâre following a Unix-specific tutorial rather than one that includes relevant information for a Windows system? (For example, OpenSSL usually is preinstalled on most Unix systems and so there wouldnât need to be a separate installation step for most Unix users.)
Youâre trying to get a Letâs Encrypt certificate for localhost? That wonât ever workâLetâs Encrypt only issues certs for public domain names.