Skip to main content Skip to footer

How to renew your certificate

The certificate generated by the PowerShell script delivered with Promodag Reports at the same time as the Promodag Reports Application published in Microsoft Entra ID is valid for two years, but you may wish to use your own or create a standard certificate with a longer expiry date.

Create a new standard certificate

Here is how to create a standard certificate with a longer expiry date:

  • Open an elevated (run as administrator) Windows PowerShell session to create a self-signed certificate and export it to .cer and .pfx formats.

For example, here is how to create a self-signed certificate with the name “Promodag Reports App” with a validity period of three years from now on and P@ssw0rd1234 as password. The certificate will be stored in the personal store of the currently logged user.

$mycert = New-SelfSignedCertificate -CertStoreLocation "cert:\CurrentUser\My" -NotAfter (Get-Date).AddYears(3) -KeySpec KeyExchange -Subject "Promodag Reports RBAC Application"
  • Once created, export the certificate under a pfx format with the password P@ssw0Rd1234. The pfx certificate will be used by Promodag reports as well as the password.
$mycert | Export-PfxCertificate -FilePath RepexRBACAppCertificate.pfx -Password $(ConvertTo-SecureString -String "P@ssw0Rd1234" -AsPlainText -Force)
  • Then export to a cer certificate file that will be used by your Azure application.
$mycert | Export-Certificate -FilePath RepexRBACAppCertificate.cer

You can skip this step if you plan to use your own certificate.

Replace the current certificate by the new one

Here is how to replace the certificate linked to a Promodag Reports application:

In Microsoft Entra ID (Azure):

  1. Open the Azure AD portal at https://portal.azure.com/.
  2. Under Manage Microsoft Entra ID, click View.
  3. On the Overview page that opens, under Manage, select App registrations.
  4. On the App registrations page that opens, click All applications above the list.
  5. Click Promodag Reports Application. You can also use the Application ID set in the Office 365 configuration tab of Tools > Options of Promodag Reports.
  6. On the app page under Manage, select Certificates & secrets.
  7. Click the Delete icon next to the current certificate.
  8. Click Upload certificate and upload the .cer file.
Upload a new certificate file in Azure

In Promodag Reports:

  1. Copy and paste the .pfx file created at step 1 in the same directory as the previous one. By default, this location is C:\Users\Public\Documents\Promodag\Reports\
  2. Open Promodag Reports and go to Tools > Options.
  3. In the Office 365 configuration tab, select the new .pfx file.
  4. Click Check validity to verify the settings of your new certificate.

Comprehensive Exchange reporting made simple for Office 365, On-Premise, and Hybrid environments

Start your free 45-day trial of Promodag Reports