This is the main Digi-Code™ Support page and provides all the main support pages you require to configure, own, deploy, manage and maintain your Digi-Code™ Certificates.
You can browse this Support Directory or you can view the Digi-Code™ KnowledgeBase [1] that contains specific Questions & Answers [Q&A] (this is free today but will be a 'Subscription Only' service soon).
Alternatively, you may wish to search all of the Digi-ID™ pages using the search facility below.
Follow all of these steps carefully to convert your .PFX (p12) certificate to a .pvk + .spc combination on Windows®
Use the Microsoft® export wizard with the following options:
Note: If you are running Windows® you may download OpenSSL here [4]. Otherwise, you can find compiled binaries directly from the OpenSSL [4] website or consult your Operating System's package management feature.
The PFX password will be asked.
The PFX password will be asked.
In order to use the Microsoft® Authenticode® Certificate to sign VBA projects you will need to import the .pvk and .spc file into your registry using a tool called pvkimprt and then export the keys as a .pfx file which you can import into your browser, this will then allow you to add the signature to the VBA Macros using the Visual Basic editor.
To download pvkimprt.exe directly from Microsoft®, see the following url: http://www.microsoft.com/downloads/details.aspx?FamilyID=f9992c94-b129-4... [6] or download it from here [7].
The pvkimprt.exe is a self extracting file, with the same name as the tool you will use to import the files. Make sure you install the file before running the pvkimprt command.
To import the files using pvkimprt.exe, you must reference the full path for your .spc and .pvk files.
You will then be prompted for the Private Key password you specified when you generated the Private Key file.
To sign the files using the Visual Basic Editor:
This document details the process needed to sign Microsoft Office 2K & XP VBA macros with a Digi-Sign Digi-Code™ certificate including a worked example. All web links are provided for illustration purposes only, and are correct at time of publishing. It is recommended that the user checks for any updates that may become available since the publishing of this document.
Pre-requisites:
Preparation:
Download the PVK import tool from Microsoft (pvkimport.exe).
http://www.microsoft.com/downloads/details.aspx?familyid=F9992C94-B129-4... [8]
Obtain your code signing certificate from Digi-Sign here.
Procedure:
2. Open a command-prompt and change to the folder where you installed pvkimport. (c:\codesign\).
3. Combine your SPC and PVK certificate/key files that you received from Digi-Sifn into a PFX file using pvkimport: (c:\codesign> pvkimprt –pfx c:\codesign\mycert.spc c:\codesign\mycert.pvk)
This will start a wizard.
Enter a password [PIN Code]
Choose options:
4. Install your Digi-Code™ certificate in Windows registry.
5. You can check the private key has been imported successfully by using MMC. Open MMC, select add/remove snap in and select certificates for your personal certificate store. Opening your code signing certificate should show code signing usage and that you have the private key corresponding to the certificate.
6. Within your MS Office document, open the Visual Basic editor from the Tools – Macro
menu.
7. Open the VBA project you wish to sign, and select Digital Signature from the Tools menu.
8. Select Chose from the Digital Signature window and choose your code signing certificate that you
wish to use to sign your VBA macro.
9. Click OK followed by Save, close to return to your Office document. Your macro is now digitally signed.
Links:
[1] http://www2.digi-sign.com/en/support/knowledgebase/digi-code
[2] http://www2.digi-sign.com/user/login
[3] http://www2.digi-sign.com/user/register
[4] http://www2.digi-sign.com/http
[5] http://www2.digi-sign.com/downloads/software/PVK.zip
[6] http://www.microsoft.com/downloads/details.aspx?FamilyID=f9992c94-b129-46bc-b240-414bdff679a7&displaylang=en
[7] http://www2.digi-sign.com/downloads/software/pvkimprt.exe
[8] http://www.microsoft.com/downloads/details.aspx?familyid=F9992C94-B129-46BC-B240-414BDFF679A7&displaylang=en