pfx certificate sample code example
Example: generate pfx certificate
openssl genrsa 2048 > private.pem
openssl req -x509 -new -key private.pem -out public.pem -validity 9999
openssl pkcs12 -export -in public.pem -inkey private.pem -out cert.pfx
openssl genrsa 2048 > private.pem
openssl req -x509 -new -key private.pem -out public.pem -validity 9999
openssl pkcs12 -export -in public.pem -inkey private.pem -out cert.pfx