Skip to content

Instantly share code, notes, and snippets.

View fosterushka's full-sized avatar
🤠
we hawwwt guys. free open source is a power

fosterushka

🤠
we hawwwt guys. free open source is a power
  • South Brunswick
View GitHub Profile
@grandsilence
grandsilence / generate.bat
Last active March 21, 2021 21:25
RUN AS ADMIN! Copy near generate.bat (OSPanel\modules\http\<YOUR SETUP>\conf)
@echo off
set OPENSSL_CONF=%~dp0..\conf\openssl.cnf
..\bin\openssl req -x509 -sha256 -newkey rsa:2048 -nodes -days 5475 -keyout rootCA.key -out rootCA.crt -subj "/CN=OSPanel/"
..\bin\openssl req -newkey rsa:2048 -nodes -days 5475 -keyout server.key -out server.csr -subj "/CN=PhpStorm/"
..\bin\openssl x509 -req -sha256 -days 5475 -in server.csr -extfile v3.txt -CA rootCA.crt -CAkey rootCA.key -CAcreateserial -out server.crt
..\bin\openssl dhparam -out dhparam.pem 2048