Hey i had the same requirement for the emails i was receiving and reverting back. i have posted the same thread on this site only and one guy have given me the code which is working very well for me. The following code creates a CS certificate and the end-entity certificate for SMIME for the email encryption. And here’s the code
Code:
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
openssl genrsa -des3 -out my.key 2048
openssl req -new -key my.key -out my.csr
openssl x509 -req -days 365 -in my.csr -CA ca.crt -CAkey ca.key -set_serial 1 -out my.crt -setalias "My E-Mail Certificate" -addtrust emailProtection -addreject clientAuth -addreject serverAuth -trustout
openssl pkcs12 -export -in my.crt -inkey my.key -out my.p12
Bookmarks