File "generate_ospanel_ssl.txt"

Full path: /home/auuge/domains/files.auu.ge/private_html/dev/phpstorm/OSPANEL_SSL/generate_ospanel_ssl.txt
File size: 2.23 KB
MIME-type: text/plain
Charset: utf-8

Download   Open   Back

1. go to modules\http\Apache-PHP-7-x64\conf and edit generate.bat

@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

2. In same folder, create v3.txt and add new domain (test.osp for this example).

nsComment = "Open Server Panel Generated Certificate"
basicConstraints = CA:false
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid,issuer
keyUsage = nonRepudiation, digitalSignature, keyEncipherment

subjectAltName = @alt_names
[alt_names]
DNS.1 = eba.test
DNS.2 = www.eba.test
DNS.3 = sales.test
DNS.4 = www.sales.test
DNS.5 = reports.test
DNS.6 = www.reports.test
DNS.7 = test.test
DNS.8 = www.test.test
DNS.9 = localhost
DNS.10 = www.localhost
DNS.11 = pia.test
DNS.12 = www.pia.test
DNS.13 = 3march.test
DNS.14 = www.3march.test
DNS.15 = 127.0.0.1
DNS.16 = www.127.0.0.1
DNS.17 = mystuff.test
DNS.18 = www.mystuff.test
DNS.19 = banners.test
DNS.20 = www.banners.test
DNS.21 = digest.test
DNS.22 = www.digest.test
DNS.23 = ads.clp.ge
DNS.24 = localhost
DNS.25 = funtime.test
DNS.26 = www.funtime.test
DNS.27 = newscms.test
DNS.28 = www.newscms.test
DNS.29 = spellcheck.test
DNS.30 = www.spellcheck.test
DNS.31 = tbiliselebi.test
DNS.32 = jt.test
DNS.33 = www.jt.test
DNS.34 = laravel.test
DNS.35 = www.laravel.test
DNS.36 = dev.test
DNS.37 = www.dev.test
DNS.38 = grand.test
DNS.39 = www.grand.test
DNS.40 = odr.test
DNS.41 = www.odr.test
DNS.42 = eba-mac.test
DNS.43 = www.eba-mac.test
DNS.44 = odr.test
DNS.45 = quiz.test
DNS.46 = www.quiz.test
DNS.47 = auu.test
DNS.48 = www.auu.test
DNS.49 = crud.test
DNS.50 = vuejs.dev
DNS.51 = www.vuejs.dev
DNS.52 = quizz.test
DNS.53 = www.quizz.test

3. In cmd, go to this location and execute generte.bat

cd modules\http\Apache-PHP-7-x64\conf
generate.bat

4. Than, replace exsisting cert files in userdata or change location of ssl in conf files.


5. Add newly generated files in "Trusted root".

DONE