Do you have the same problem?
When you finished your web application and deployed on server.
You found your app service need certificate is pfx after hosting your domain name by Cloudflare.
But you don’t known how to make certificate by using resource what you have?
This article will help you from Cloudflare make a pfx certificate and upload to Azure Server.
Necessary tool:
- Cloudflare account
- Git source control software
- You can find the “bin” file under the git and add this path(C:\Program Files\Git\bin-àwhere you installed) to your environment PATH before reboot you computer.
- Azure App Service
Operating procedures:
1.Enter Cloudflare > Domain > SSL/TLS > Origin Server。
2.Click Create Certificate。

3.Using Cloudlfare to generate private key type – choose RSA(2048).

4.Generate PEM file:

- Key Format choose PEM
- Copy the Origin Certificate data to make the file (File name: cert.pem will be used later).
- Copy the Private Key data to make the file(File name: key.pem It will be used later)
Put cert.pem and key.pem into the same file.
5.Using cmd and go to the file where pem file is.

6.Enter the command
openssl pkcs12 -export -out Cert.pfx -in cert.pem -inkey key.pem -passin pass:helloworld -passout pass:helloworld


You will get the Cert.pfx file
7.Upload the certificate to Azure app service
- Click 「Bring your own certificates(.pfx)」.
- Click 「Add certificate」.
- Choose source「Upload certificate(.pfx)」.
- Choose PFX certificate file.
- Entering 「certificate password」—> The password is what you command to create the pfx(This example is “helloworld”).

8.Click “Validate” after upload your pfx file.
If you have any questions, you can leave a message below or contact us through our Facebook fan page. I will replay you as soon as possible, thank you!
Please share, if you think this article is helpful.
如果有任何問題,歡迎至下方留言或是至粉絲專業與我們聯繫。
我會盡快回復你的問題,謝謝!
如果你覺得這篇文章不錯,歡迎分享!!
Nice bro! This article is helpful for me. I can’t believe that set up complex system so easy before reading this article.
Thanks for reading
I’m so great to help you