Https _ssl Configuration Error

I have converted my .pfx_ssl file using these commands

openssl pkcs12 -in your_pfx_file.pfx -clcerts -nokeys -out cert.pem
openssl pkcs12 -in your_pfx_file.pfx -nocerts -out key.pem

but still streamlit is showing error like
“Failed to load SSL certificate. Make sure cert file ‘cert.pem’ and key file ‘key.pem’ are correct.”

I also inspected content of file but still error persis.
What type of cert and key files content streamlit expect?

Hi @Noman_Ahmad,

Thanks for sharing this question!

Can you provide more information? Are you trying to setup SSL to deploy your app on a server?

@tonykip Yes I’m setting up SSL on a dedicated Windows server. SSL I have is exported from IIS in .pfx formats. Then using the above commands I extracted .cert and .key files.

When I config the SSL with Streamlit app it shows the above error.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.