Skip to content

mTLS e2e sample with PKI generation and test client / server

Notifications You must be signed in to change notification settings

michaeldye/mtls-e2e-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-mtls-e2e-sample

Updates

TODO

  • Demonstrate cross-signed certs

Use

Monkeying with certs

Make the stuff:

make realclean && make -j4 verbose=y validate

Inspect certs:

make show

Clean up:

make realclean

Testing mTLS

Using a python server and client

Make PKI:

make

Start a server:

./server.py

... then start a client:

./client.py

Using openssl

Make PKI:

make
openssl s_client -CAfile ./root-ca-cert.pem -cert ./client-cert.pem -key ./client-key.pem -cert_chain ./client-certchain.pem -connect myserver.cluster.local:8443 -pass file:passphrase.txt

... or also functional ...

openssl s_client -CAfile ./root-ca-cert.pem -cert ./client-certchain.pem -key ./client-key.pem -cert_chain ./client-certchain.pem -connect myserver.cluster.local:8443 -pass file:passphrase.txt

About

mTLS e2e sample with PKI generation and test client / server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published