OpenSSL step by step tutorial explaining how to generate key pair, how to export public key using openssl commands, how to create CSR using openSSL and how to generate self signed certificate using Open SSL command line tool.
To dowload openSSL visit:
To learn how to use Java Key Tool to generate self signed certificates:
To learn how to use Portecle to generate self signed certificates:
To learn difference between one-way and two-way SSL: .