PKI example for vgisc.com
Find a file
2025-02-24 11:33:21 +07:00
bin 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00
client 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00
conf 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00
root-ca 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00
scripts 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00
server 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00
sub-ca 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00
vgisc.com 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00
xml 2025-02-24 11:33:21 2025-02-24 11:33:21 +07:00
build-3.3.2.sh 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00
build.sh 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00
encrypt_keys.sh 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00
gen_ca-3.3.2.sh 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00
gen_clients.sh 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00
gen_crypto_key_xml.sh 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00
gen_pki_param_xml.sh 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00
gen_servers.sh 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00
git_push.sh 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00
LICENSE 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00
readme.md 2025-02-24 11:30:29 2025-02-24 11:30:30 +07:00

Simple shell script to create certs (RSA or EC (nistp256r1))


Usage:
 ./build.sh rsa/ec gen_ca                 # generate CA keys and certs
 ./build.sh rsa/ec gen_subca              # generate Sub CA keys and certs (implying: gen_ca)
 ./build.sh rsa/ec server wwww.vgisc.com  # generate Server certs with CommonName: www.vgisc.com (implying: gen_subca)
 ./build.sh rsa/ec client client1         # generate client certs with CommonName: client1 (implying: gen_subca)

 ./build.sh rsa/ec test_server            # generate a test server cert and run openssl s_server on 127.0.0.1:8443
 ./build.sh rsa/ec test_client            # generate a test client cert and run openssl s_client connecting 127.0.0.1:8443
 ./build.sh verify                        # verify every cert in ./server/*.crt and ./client/*.crt
 ./build.sh clean                         # delete everything, including root-ca and sub-ca dirs
 ./build.sh help                          # show this help