Introduction
This article discusses how to use PowerShell to create a self-signed digital certificate to test digital signing with InstallShield. Note that this article has you create a test certificate, not usually meant for production use. This test certificate can be handy for determining whether a digital signing issue is specific to the actual production digital certificate or is reproducible with more than one digital certificate.
Instructions
Here are the steps to follow:
-
Open an Administrator PowerShell command prompt.
-
Run the following PowerShell command:
$cert = New-SelfSignedCertificate -Subject "MySelfSignedCertXYZ" -Type CodeSigningCert -CertStoreLocation cert:\CurrentUser\My -KeyExportPolicy ExportableEncrypted -NotAfter (Get-Date).AddMonths(480) -KeyUsage None
-
Open the certificate manager for the current user by running the following command from Windows > Run:
certmgr.msc
-
Navigate to Personal > Certificates.
-
Drag the MySelfSignedCertXYZ digital certificate from Personal > Certificates then drop it in Trusted Root Certification Authorities > Certificates.
-
Create a new Basic MSI test project in the InstallShield IDE.
-
Configure the Signing Tab like in your full project, except with the MySelfSignedCertXYZ digital certificate selected from the certificate store instead of your actual digital certificate.
-
Build the project.
More Information
If this article does not resolve the digital signing issue and the InstallShield version being used is prior to InstallShield 2023 R2, please navigate to Preliminary Troubleshooting Steps for Digital Signing Issues prior to InstallShield 2023 R2.
For more information about digital signing with Extended Validation (EV) digital certificates, specific to InstallShield 2023 R2, please review the documentation here.
Related Articles
Sign Your Installers Externally on Windows (Digital Signatures) 4Number of Views Digital Signature Process for Dongle-Based OV Code Signing Certificates 9Number of Views Disable Time Stamp when Performing a Digital Signature 3Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago