Em subjectAltName
coloque seus Host e IPs desejados
openssl req -x509 -days 18250 -out server.crt -keyout server.key \
-newkey rsa:2048 -nodes -sha256 -extensions EXT -subj '/CN=server' \
-config <(printf "[dn]\nCN=server\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost,DNS:franciel-pc,IP:10.1.1.5,IP:10.1.1.118\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth\nbasicConstraints=CA:TRUE")
Reference: https://letsencrypt.org/pt-br/docs/certificates-for-localhost/
CertificateFile
=server.crt
CertificateKeyFile
=server.key
- Windows: Instalar em Autoridades de Certificação Raiz Confiáveis
- Android: Instalar
- IOS: Instalar | Confiar