Created
November 29, 2023 16:13
-
-
Save Tynael/031fada372159dac75e3ca2d0f8fc875 to your computer and use it in GitHub Desktop.
makecert.bat used in XAMPP to create a self-signed SSL certificate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set OPENSSL_CONF=./conf/openssl.cnf | |
if not exist .\conf\ssl.crt mkdir .\conf\ssl.crt | |
if not exist .\conf\ssl.key mkdir .\conf\ssl.key | |
bin\openssl req -new -out server.csr | |
bin\openssl rsa -in privkey.pem -out server.key | |
bin\openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 1825 -extfile v3.ext | |
set OPENSSL_CONF= | |
del .rnd | |
del privkey.pem | |
del server.csr | |
move /y server.crt .\conf\ssl.crt | |
move /y server.key .\conf\ssl.key | |
echo. | |
echo ----- | |
echo Das Zertifikat wurde erstellt. | |
echo The certificate was provided. | |
echo. | |
pause |
Great Information and detailed
I followed and it work like cake
Thanks :)
@amitjoc Awesome! Happy to help 💜
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
v3.ext
file can be found here.Examples used in https://neutrondev.com/how-to-set-up-ssl-certificate-localhost-xampp/