Last active
October 20, 2024 09:27
-
-
Save turtlepod/e94928cddbfc46cfbaf8c3e5856577d0 to your computer and use it in GitHub Desktop.
XAMPP SSL Tutorial https://shellcreeper.com/?p=2573
This file contains 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 /p domain="Enter Domain: " | |
set OPENSSL_CONF=../conf/openssl.cnf | |
if not exist .\%domain% mkdir .\%domain% | |
..\bin\openssl req -config cert.conf -new -sha256 -newkey rsa:2048 -nodes -keyout %domain%\server.key -x509 -days 3650 -out %domain%\server.crt | |
echo. | |
echo ----- | |
echo The certificate was provided. | |
echo. | |
pause |
Hello everyone, here is the solution for your problem:
https://gist.github.com/TheClio69/d7ea7477cf3f28f304ab02f545b6ec96
What has been changed? Two paths have been changed (for more information see the gist).
I published this solution 4 months ago on my github, but forgot to send it here, which is why I am sending this message so late.
where cert.conf
came from ?
cert.conf
is created in this article which the script is based on: https://shellcreeper.com/how-to-create-valid-ssl-in-localhost-for-xampp/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I fixed my issue by fixing two paths of openssl for my Xampp with PHP 7.4 at
C:/xampp
with this file located atC:/xampp/cert/make-cert.bat