Relative certificatePath in .Sign file

Add-in Express™ Support Service
That's what is more important than anything else

Relative certificatePath in .Sign file
 
Subscribe
Tim Farrelly




Posts: 18
Joined: 2020-08-05
Hi There,

Is it possible to have a relative certificate path in the add-in.sign file instead of the absolute one?
<certificatePath>C:\Source\dev\solution\ABC2024.pfx</certificatePath>

Thanks
Posted 17 Jul, 2025 06:28:12 Top
Tim Farrelly




Posts: 18
Joined: 2020-08-05
Anyone know?
Posted 29 Aug, 2025 05:14:04 Top
Andrei Smolin


Add-in Express team


Posts: 19169
Joined: 2006-05-11
Hello Tim,

It looks like this isn't possible: the source code doesn't do anything to expand relative paths, and at https://stackoverflow.com/questions/51490379/x509certificate2-error-system-cannot-find-the-file-specified they say that new X509Certificate2(filePath, password) only supports absolute paths.

Regards from Poland (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 29 Aug, 2025 08:26:32 Top