Converting a certificate from .cert to .pfx to use with Power Pages OAuth2 implicit flow


We know that in order to use OAuth2 implicit flow in Power Pages, we need to have a certificate in the proper format as specified by Microsoft here: Manage custom certificates

As we can the Let’s Encrypt service to generate free SSL certificates, I was wondering if I could not use the same developing Power Pages integration POCs in my developer tenant. Those certificates actually meet the criteria but they are not immediately in PFX format.

Straight away we can’t as they are not exposed as PFX files, but it’s not complex to run the conversion.

Steps needed (or the ones I took to achieve this)

Download the cert files from Let’s encrypt: Save them locally in your computer (pem file and crt file)

Install Open SSL: In my case I used the Open SSL version that comes bundled with Git

From Open SSL bash: Navigate into the folder in your computer where you have the .cer files and the private key.

Run the following command (replace the file names to your destination…


Source link

More About This Author

michelcarlo
michelcarlo
SharePoint and Office 365 Consultant/Developer always trying to get the best from Microsoft stack (Microsoft 365/Azure/Power Platform and related stuff).

Living in Ireland since 2018, I had previously worked in Brazil as a consultant/developer for Office 365, SharePoint and related technologies for almost 10 years.

Author: michelcarlo

SharePoint and Office 365 Consultant/Developer always trying to get the best from Microsoft stack (Microsoft 365/Azure/Power Platform and related stuff). Living in Ireland since 2018, I had previously worked in Brazil as a consultant/developer for Office 365, SharePoint and related technologies for almost 10 years.

Share This Post On
Share via
Copy link
Powered by Social Snap