We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

threenub
Posts: 2
Joined: Wed May 01, 2019 9:53 pm

Correctly Setting up EV Code Signing Certificate for AppX/MSIX build

Hi There,

We have recently deployed an EV code signing certificate in our build environment and I am having some trouble settings up the Publisher ID.

Now i have noticed that our subject in the code signing certificate differs slightly from others I have used in the past as it has additional RDNs:
  • SERIALNUMBER
  • 2.5.4.15
  • 1.3.6.1.4.1.311.60.2.1.3
2019-05-02_7-12-56.jpg
2019-05-02_7-12-56.jpg (67.93 KiB) Viewed 3318 times
It appears Advanced Installer 15.8 looks for a specific Regex pattern that prefaces the OID entries in my certificate with "OID.":

Code: Select all

(CN|L|O|OU|E|C|S|STREET|T|G|I|SN|DC|SERIALNUMBER|Description|PostalCode|POBox|Phone|X21Address|dnQualifier|(OID\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))+))=(([^,+="<>#;])+|".*")(, ((CN|L|O|OU|E|C|S|STREET|T|G|I|SN|DC|SERIALNUMBER|Description|PostalCode|POBox|Phone|X21Address|dnQualifier|(OID\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))+))=(([^,+="<>#;])+|".*")))*
The issue i have is that my certificated does not list it in the subject this way, it simply the numbers (eg "2.5.4.15=Private Organization" rather than "OID.2.5.4.15=Private Organization").

This problem effectively prevents me from signing my AppX/MSIX packages so I am in a bit of a pickle. I know of other packages that are signed without the OID prefix, such as the Notification Manager for Acrobat Reader https://geelaw.blog/entries/adobe-reade ... o-windows/ (don't bother with the actual premise of the article haha)

Any help you can provide would be amazing..

threenub
threenub
Posts: 2
Joined: Wed May 01, 2019 9:53 pm

Re: Correctly Setting up EV Code Signing Certificate for AppX/MSIX build

OK - I just retried the build with the "OID." prefix and it has worked.

For anyone else running into this problem all that needs to happen is you prefix OIDs with "OID.", such as:

Code: Select all

CN=Company Code Signing Certificate, O=Organisation Name, L=City, S=State, C=AU, SERIALNUMBER=1234567, OID.2.5.4.15=Private Organization, OID.1.3.6.1.4.1.311.60.2.1.3=AU
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Correctly Setting up EV Code Signing Certificate for AppX/MSIX build

Hello and welcome to our forums,

Thank you for sharing with us the solution for your scenario.

As a side note, I want to mention that Advanced Installer uses the Microsoft's SignTool utility to sign the installation resources and this is a SignTool requirement, rather than an Advanced Installer specific one.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”