leokhoa / laragon

Laragon is a portable, isolated, fast & powerful universal development environment for PHP, Node.js, Python, Java, Go, Ruby. It is fast, lightweight, easy-to-use and easy-to-extend.
https://laragon.org
4.45k stars 371 forks source link

SSL certificate valid for 3650 days, any way to shorten this configuration? #310

Open namontague opened 2 years ago

namontague commented 2 years ago

Is there any way to set the default amount of days for how long the auto generated openssl certificates are valid for?

Having issues with the validity of the certificates with safari on an ipad. Related to Apple restricting the SSL/TLS validity to 398 days.

popkilli commented 2 years ago

Use the current laragon auto.openssl.conf (located in X:\Laragon\etc\ssl) and self generate by running command:

openssl req -x509 -nodes -days 398 -newkey rsa:4096 -keyout server.key -out server.crt -config auto.openssl.conf -extensions v3_req

P/S: Try to change below configurations in auto.openssl.conf if any error occured.

[v3_req] keyUsage = nonRepudiation, digitalSignature, keyEncipherment extendedKeyUsage = serverAuth subjectAltName = @alt_names

tinhthaison commented 1 year ago

how i can change ssl from localhost to "domain name" when i use noip and connect laragon on my computer.