Exporting a Certificate

  1. Create a PowerShell script file with the name Export_Certificate.ps1 at the appropriate location, and add the following content into the script file.

# Get the certificate
#$SelfCertificate = Get-ChildItem -Path Cert:\CurrentUser\My\ |
$SelfCertificate = Get-ChildItem -Path Cert:\LocalMachine\My\ |
Where-Object { $_.Subject -eq "CN=Authenticode Certificate" }

# Export the Self Signed Certificate
Export-Certificate `
  -FilePath "C:\Authenticode\Authenticode_Certificate.cer" `
  -Cert $SelfCertificate
  1. Launch PowerShell as Administrator, and run Export_Certificate.ps1.

 .\Export_Certificate.ps1 
image-20260529-104721.png

Exporting the certificate

  1. To view the Properties, double-click on the exported certificate.

Exporting a Certificate-20260528-112732.jpg


Exported certificate details