Skip to content

aseemsethi/ssl-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSL TOOL (./ssl_tool)
Abstract:
This program is a simple SSL Client program, and can be used to test SSL Servers.

Generation of Keys for openssl_s:
(ref: akadia.com/services/ssh_test_certificate.html)
Generate 1024 bit Private Key, which is encrypted using triple DES
$ openssl genrsa -des3 -out server.key 1024
Generate a CSR - enter various details like Org Name, etc.
$ openssl req -new -key server.key -out server.csr
Remove passphrase from Key - removed triple des encrption from key. This
ensures that if the server.cert/server.key pair is used in Apache, it 
will not ask for password whenever web server is started.
$ cp server.key server.key.org
$ openssl rsa -in server.key.org -out server.key
Generate a Sel-Signed Certificate
$ openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
At the End of the above excercise the pair server.crt and server.key are used
in any SSL Server like Apache Server.

Testing the SSL Client program:
To Test the SSL Client program, openssl_s test server was used as follows

Start Server
$ openssl s_server -key server.key -cert server.crt -debug -state -msg
The Keys are generated as explained above:
1) server.key	- private key
1) server.cert	-  Self Signed Certificate
1) Flags	- -debug -state -msg 

Start Client
./ssl



About

ssl client tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published