openssl req -nodes -newkey rsa:2048 -nodes -keyout privateKey.key -out CertRequest.csr -subj "/CN=mydomain.com"openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.crtopenssl req -out CertRequest.csr -key privateKey.key -newusing existing certificate
openssl x509 -x509toreq -in certificate.crt -out CertRequest.csr -signkey privateKey.keyopenssl x509 -outform der -in certificate.pem -out certificate.deropenssl crl2pkcs7 -nocrl -certfile certificate.cer -out certificate.p7bopenssl x509 -inform der -in certificate.cer -out certificate.pemopenssl pkcs7 -print_certs -in certificate.p7b -out certificate.ceropenssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer
openssl pkcs12 -export -in certificate.cer -inkey privateKey.key -out certificate.pfxopenssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crtusing intermediate certificate
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt
openssl pkcs12 -in certificate.pfx -out certificate.cer -nodesopenssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt