Self signed certificate with config

Openssl

Execute an openssl statement from the Linux commmand line (CLI):

In the samples below replace yourdomain with the actual "yourdomain", like foodprocessing.local

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout www_yourdomain_local.key -out www_yourdomain_local.crt -config config.in

Contents of config.ini file:

[ req ]
prompt = no
default_bits = 4096
distinguished_name = req_distinguished_name
req_extensions = req_ext

[ req_distinguished_name ]
C=NL
ST=Overijssel
L=Raalte
O=Enovision IT & Web Services
OU=IT Dept.
CN=yourdomain.local

[ req_ext ]
subjectAltName = @alt_names

[alt_names]
DNS.1 = www.domain.local
DNS.2 = yourdomain.local
IP.1 = xxx.xxx.xxx.xxx

* Replace the file above to your own requirements

This doesn't solve the self signed certificate issue in the browser

Last update: Tue, 13 Sep 2022 14:32:15