8000 GitHub - jeffscrum/mtls-cert-manage: Use easy-rsa to build and manage a PKI/mTLS CA
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jeffscrum/mtls-cert-manage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 

Repository files navigation

Download easyrsa

git clone https://github.com/OpenVPN/easy-rsa
sudo ln -s /home/jeffscrum/easy-rsa/easyrsa3/easyrsa /usr/bin/easyrsa

Test it:

sudo easyrsa

Download software:

git clone https://github.com/jeffscrum/mtls-cert-manage/

Make scripts executable:

cd ~/mtls-cert-manage/pki
chmod +x *.sh

init-pki & build ca

sudo easyrsa init-pki
sudo easyrsa gen-dh
sudo easyrsa build-ca

Update capassfile base on password used at build-ca

vi capassfile

Build server pem for Splunk

./splunk.sh

Build server pem for Haproxy

./haproxy.sh

Update p12passfile base on password used for p12 export

vi p12passfile

Build client pem without private key password

./client.sh <client_name>

Update cppassfile base on password used for client private key

vi cppassfile

Build client pem with private key password

./clientpw.sh <client_name>

Note If you are exportin certificate for MacOS, use legacy algorithms for p12 (More info)

openssl pkcs12 -export -legacy -out <export_name>.p12 -in <client_name>.crt -inkey <client_name>.key -certfile <ca_name>.crt

Revoke client cert

./revoke.sh <client_name>

Show cert & crl info

openssl x509 -noout -text -in ca.crt
openssl crl -noout -text -in revoked.pem

Note:

  • client1.p12 is client p12 file (client certificate)
  • ca.crt is CA Certificate

Install Certificate at Windows

Install Certificate at Mac OS X

Install Certificate at Linux (Ubuntu, Debian)

Install Certificate at Linux (CentOS, Red Hat)

Secure TLS protocol and cipher configurations for webservers can be generated using Mozilla's SSL Configuration Generator. All supported browsers and the Mobile apps are known to work with the "Modern" configuration.

About

Use easy-rsa to build and manage a PKI/mTLS CA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%
0