Skip to content

Own Certificate Authority (CA) with multi-domain SSL certificates generation recipe (localhost development).

License

Notifications You must be signed in to change notification settings

drmats/locatrust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

locatrust

Own Certificate Authority (CA) with multi-domain SSL certificates generation recipe (localhost development).


root key (with passphrase)

$ openssl genrsa -des3 -out rootCA.key 4096

root Certificate Authority (to be imported to the browser)

$ openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 3650 -out rootCA.crt

server key

$ openssl genrsa -out ssl.key 4096

server Certificate Signing Request

$ openssl req -new -key ssl.key -out ssl.csr -config ssl.cnf

server Certificate signed by root CA

$ openssl x509 -req -in ssl.csr \
    -CA rootCA.crt -CAkey rootCA.key -CAcreateserial \
    -days 3650 -sha256 -out ssl.cert -extfile ssl.cnf -extensions v3_req

server Certificate signed by root CA (subsequent calls)

$ openssl x509 -req -in ssl.csr \
    -CA rootCA.crt -CAkey rootCA.key -CAserial \
    -days 3650 -sha256 -out ssl.cert -extfile ssl.cnf -extensions v3_req

support

If you've found this useful, you can buy me a 🍺️ or 🍕️ via the stellar network:


license

locatrust is released under the Apache License, Version 2.0. See the LICENSE for more details.

About

Own Certificate Authority (CA) with multi-domain SSL certificates generation recipe (localhost development).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published