Class CodeSigner
Implements code signing.
Namespace: Neon.Deployment.CodeSigning
Assembly: Neon.Deployment.dll
Syntax
public static class CodeSigner
Methods
IsReady(UsbTokenProfile)
Verifies that the current machine is ready for code signing using a USB code signing certificate and the Microsoft Built Tools signtool program.
Declaration
public static bool IsReady(UsbTokenProfile profile)
Parameters
Type | Name | Description |
---|---|---|
UsbTokenProfile | profile | Specifies a UsbTokenProfile with the required signing prarameters. |
Returns
Type | Description |
---|---|
bool |
|
Remarks
note
WARNING! Be very careful when using this method with Extended Validation (EV) code signing USB tokens. Using an incorrect password can brkick EV tokens since thay typically allow only a very limited number of signing attempts with invalid passwords.
Exceptions
Type | Condition |
---|---|
PlatformNotSupportedException | Thrown when executed on a non 64-bit Windows machine. |
Sign(AzureProfile, string)
Signs an EXE, DLL or MSI file using Azure Code Signing using the AzureSignTool.
Declaration
public static void Sign(AzureProfile profile, string targetPath)
Parameters
Type | Name | Description |
---|---|---|
AzureProfile | profile | Specifies a UsbTokenProfile with the required signing prarameters. |
string | targetPath | Specifies the path to the file being signed. |
Exceptions
Type | Condition |
---|---|
PlatformNotSupportedException | Thrown when executed on a non 64-bit Windows machine. |
Sign(UsbTokenProfile, string)
Signs an EXE, DLL or MSI file using a USB code signing certificate and the SignTool from the Microsoft Built Tools.
Declaration
public static void Sign(UsbTokenProfile profile, string targetPath)
Parameters
Type | Name | Description |
---|---|---|
UsbTokenProfile | profile | Specifies a UsbTokenProfile with the required signing prarameters. |
string | targetPath | Specifies the path to the file being signed. |
Remarks
note
WARNING! Be very careful when using this method with Extended Validation (EV) code signing USB tokens. Using an incorrect password can brick EV tokens since thay typically allow only a very limited number of signing attempts with invalid passwords.
Exceptions
Type | Condition |
---|---|
PlatformNotSupportedException | Thrown when executed on a non 64-bit Windows machine. |