Thursday, August 13, 2009

ssl key and cert generation apache openssl0.9.8k

[root@someserver opt]# cat generate_ssl_key_and_cert.bash
#!/bin/bash
#me 13aug09
#generate ssl key and cacert from key using newest openssl
/opt/openssl-0.9.8k/apps/openssl genrsa -out privkey.pem 2048
/opt/openssl-0.9.8k/apps/openssl req -new -x509 -key privkey.pem -out cacert.pem -days 5000

No comments: