book
Article ID: KB0070196
calendar_today
Updated On:
Description
Here is the command line example for signing the package :
.\Spotfire.Dxp.PackageBuilder-Console.exe /targettype:package /pkdesc:sample.pkdesc /target:"D:\SPK\Examples\signedmods\my-mod_signedmod.mod" /cert:"C:\SPK\Certificates\mycompanycertificate.pfx" /password:mycompanypassword
This command will work fine for the SPKs created for the Windows environment.
When the SPK extracted from Windows contains "
Contents/<Package Name>.cab" and when checking the Windows extract file (cab), its properties show that it has a digital signature.
When the same command is run for the Linux SPKs, it will execute successfully, but the package won't be signed.
This is because if we extract the SPK of Linux, it will contain "
Contents/<Package Name>.zip".
There is no standard for signing zip files like cab files, so the signing arguments are ignored.
Resolution
To sign content for the Linux SPKs, the flag
/archiveformat:cab can also be provided to PackageBuilder-Console.
Command line example :
.\Spotfire.Dxp.PackageBuilder-Console.exe /targettype:package /pkdesc:sample.pkdesc /target:"D:\SPK\Examples\signedmods\my-mod_signedmod.mod" /cert:"C:\SPK\Certificates\mycompanycertificate.pfx" /password:mycompanypassword /archiveformat:cab
However, this will require that cabextract is installed on the Linux node since cab-files cannot be unpacked natively on Linux.
Issue/Introduction
This article outlines the process of signing Linux/Netcore SPKs with the digital certificate.