Page 1 of 1

makecert.bat fails

PostPosted: 29. August 2020 10:37
by oldcelt
makecert.bat fails and previous threads do not provide the answer. Just as a previous poster, I run the batch file and get:-

The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Could Not Find C:\xampp\apache\cert\.rnd
Could Not Find C:\xampp\apache\cert\privkey.pem
Could Not Find C:\xampp\apache\cert\server.csr
The system cannot find the file specified.
The system cannot find the file specified.

-----
Das Zertifikat wurde erstellt.
The certificate was provided.

Press any key to continue . . .

The problem is that as soon as I press any key the command screen simply shuts down and no certificate has been created!

Re: makecert.bat fails

PostPosted: 30. August 2020 21:18
by gsmith
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Could Not Find C:\xampp\apache\cert\.rnd
Could Not Find C:\xampp\apache\cert\privkey.pem
Could Not Find C:\xampp\apache\cert\server.csr
The system cannot find the file specified.
The system cannot find the file specified.

-----
Das Zertifikat wurde erstellt.
The certificate was provided.

Press any key to continue . . .

Easy to repeat if I create the cert folder and move makecert.bat into it and run from there.
I will assume that is what you did. That batch file is written to be run only from C:\xampp\apache.

So put it back in C:\xampp\apache and run it from there.

It will clean up after itself nicely and you will find new server.crt & server.key files in
C:\xampp\apache\conf\ssl.crt
C:\xampp\apache\conf\ssl.key