1.)Create a Self Signed Certificate
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout selfsigned.pem -out selfsigned.pem
2.) Verify a self-signed certificate
openssl verify selfsigned.pem
3.) Export selfsigned.pem as PKCS#12 file, identity.pfx
openssl pkcs12 -export -out identity.pfx -in selfsigned.pem -name "selfsigned"
4:) Extract public certificate from url
openssl s_client -showcerts -connect core-integrations.mindtelligent.com:443 </dev/null 2>/dev/null | openssl x509 -outform PEM > certificate.pem