#Single PKI model
Use create_CA.rb path/filename
to create the self-signed certificate + RSA key for the certification authority
Use create_Entity.rb path_CA/filename path_entity/filename
to create the end-entity certificate + RSA key
CA.rb
is a small server used to certify the entity serveur
Serveur.rb
simple ssl server with peer certificate verification + getting certified if necessary
Client1.rb & Client2.rb
are simple ssl clients with certificate verification
In this exemple every certificate is provided, you can manually delete the Serveur.crt and see how the certificate signing is done.