| Microsoft Typography | Developer | Digital signatures | OpenType font signing tool | |||
|
.spc file and a You can create a test.spc and test.pvk for testing purposes with the tools provided in the font signing tool, but when you want to sign a font file "for real" you need to obtain these files from Certification Authority such as Verisign. When contacting a Certification Authority apply for a 'Class 3 Authenticode digital signature'. Asking for a 'font-signing certificate' is not a good idea, as the certificate you need is not specific to font signing. The .spc file containing your public key and other information, resides on your hard drive, and it can be distributed to others. The .pvk file contains a private key that corresponds to the public key in the .spc file. Once you have received a .pvk file from Certification Authority it is recommended that the file should NEVER be stored on your hard drive and should always be stored on a floppy disk and be used as needed.
Minimum system requirements:
Window 2000: Beta 3 or higher, or
Windows NT/2000: Move mssipotf.dll to winnt\system32
Register the mssipotf.dll with Windows, by typing the following at the command prompt, regsvr32 mssipotf.dll
To sign a font file eg. myfont.TTF, go to the folder where you downloaded the font signing tool, and at the command prompt type, signcode -spc my.spc -v my.pvk -j mssipotf.dll myfont.ttf The -j mssipotf.dll option is reqired for successfully signing font files and therefore, must be included in the command prompt. This option tells signcode that mssipotf.dll contains code that will perform a series of checks on the font to determine glyph integrity. This process may take a few seconds or many minutes, depending on how many glyphs are in the font file. If the font does not pass this verification test, signing will fail. Signcode has many other command line options and you can learn about them by typing Signcode -? at the command prompt. Other recommended options to include in the command line are, -n "My Font name" -i http://www.mycompany.com -t http://timestamp.verisign.com/scripts/timstamp.dll The three options above will add font's name, link it your site and add a time stamp to the digital signatures certificate.
A successfully signed font file can be verified using chktrust.exe: chktrust myfont.otf Another way to verify a signed file on Windows 2000 and Windows 98 is to 'right-click' the font file and select 'properties'. A 'Digital Signatures' tab will be displayed that provides more detail about the signature, including the timestamp (if it was used in signing). Note that in Windows 2000 the icon associated with a signed font file is the OpenType logo (an O), rather than the TrueType logo (a TT). However, signed TTCs still have the TT logo.
We recommend that you run your TrueType or OpenType fonts through our 'FastFont' utility prior to signing them. This program reorders a TrueType or OpenType file for faster execution. It does this by placing all of the small, frequently used tables at the beginning of the font file, allowing the font to be loaded with fewer page faults. By rewriting the tables in this way many of the problems listed in the 'Signing criteria' section of this document are fixed. Although the individual font files that make up a TrueType Collection (.TTC) may be run through FastFont the resulting .TTC file should not. In general you should always test sign a font before signing it for real. You'll need to create a dummy version of your own .cer and .pvk files by going to the directory where you downloaded the font signing tool and type the following on the command line makecert -n CN=JoeBob -sv test.pvk test.cer cert2spc test.cer test.spc setreg 1 TRUE Makecert will create .cer and .pvk files, and the associated certificate will be called "JoeBob". A dialog box will ask you to provide a password for the .pvk file and then ask to confirm the password each time the .pvk file is used. Finally, to test sign a font, at the command prompt type the following signcode -spc test.spc -v test.pvk -j mssipotf.dll myfont.ttf Note: In the above example we have used minimal signcode options as we are only test signing a font file. You can also modify the signdemo.bat provided with the font signing tool according to your font and company then type Signdemo MyFont.ttf If you sign a file with a test certificate, the signed file should NOT be distributed for official purposes.
Here are some frequently asked questions:
Q I've downloaded the font tool but don't see the misipotf.dll.
Q I'm running out of space at the DOS prompt?
Q I Can't sign the file because the file was read-only.
Q It takes a long time to sign.
Q Will having other copies of mssipotf.dll on the system cause problems?
Q I get an error during the signing process
As files other than font files are signed in different ways. To identify a file as a font file, the file must meet certain criteria. The criteria are outlined below.
Signcode will not sign and chktrust will not verify if the font file does not meet all of the above criteria. The philosophy behind these rules is that the more structure that is imposed on a font file, the less likely a malicious entity will be able to disguise a bad font file to look like a good one. This will become more important as other kinds of signatures are employed to sign font files.
You can disable font signing and verification by unregistering mssipotf.dll: regsvr32 /u mssipotf.dll
Optionally, you can then delete mssipotf.dll.
|
|||
| Microsoft Typography | Developer | Digital signatures | OpenType font signing tool | |||