cd /usr/share/ssl
[root@TCS047055 ssl]# umask 077
[root@TCS047055 ssl]# openssl genrsa -des3 -out certs/segw.key 2048  //Its ask for pass phrase, we have given abcd. It is the password to use 						  	 //this private key

[root@TCS047055 ssl]# umask 022
[root@TCS047055 ssl]# openssl req -new -key certs/segw.key -out certs/segw.csr /Certificate Signining Request which need to send to 									//CA


[root@TCS047055 ssl]# mkdir -p demoCA/newcerts
[root@TCS047055 ssl]# touch demoCA/index.txt
[root@TCS047055 ssl]# echo "01" > demoCA/serial
[root@TCS047055 ssl]# umask 022
[root@TCS047055 ssl]# openssl genrsa -des3 -out certs/ca.key 2048  //Its ask for pass phrase, we have given abcd. It is the password to use 						  	 //this private key . 

[root@TCS047055 ssl]# openssl req -days 3650 -x509 -key certs/ca.key -set_serial 01 -new > certs/ca.crt

[root@TCS047055 ssl]# umask 022
[root@TCS047055 ssl]# openssl ca -in certs/segw.csr -keyfile certs/ca.key -cert certs/ca.crt -out certs/segw.crt