The text of a manual · part 5 of 11
MX Series Reference Manual: Chapter 3, pages 25 to 34
Pages 25 to 34 of 74, from MX Series Reference Manual
The original document is the PDF (642 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the VeriFone MX850, VeriFone MX860 and VeriFone MX870
Page 25
Deployment Terminals While the application development process is being completed and while the new application is being tested on a development terminal, a sponsor can order specific sponsor and signer certificates from the VeriFone CA that can be used to logically secure sponsor and signer privileges when the MX Series terminal is prepared for deployment. Customer–specific sponsor and signer certificates are usually downloaded to an MX Series terminal as part of the standard application download procedure performed by a deployment service. In this operation, the new sponsor and signer certificates replace the development sponsor certificate that is part of the factory set of certificates, as shown in Figure 4. When the sponsor and signer certificates are downloaded and successfully authenticated, the terminal is ready for deployment. Ultimately, the sponsor will decide how to implement the logical security provided by FA on a field-deployed terminal. Additional certificates can be obtained from the VeriFone CA at any time to implement new sponsor and signer relationships in deployment terminals.
MX SERIES REFERENCE MANUAL
19
Page 26
Development Terminal
Deployment Terminal
Root
Root
VeriFone
Application
Partition
VeriFone
Partition
Partition
Operating System
Default Certificate
Operating System
Application Partition
Sponsor Certificate (validated by the Application Partition Certificate) Signer Certificate (validated by the Sponsor Certificate)
Figure 4
Certificate Trees in Development and Deployment Terminals
Permanency of the Certificate Tree The data contained in a digital certificate is stored in the terminal’s certificate tree when the certificate is authenticated. The certificate file can then be deleted by the application. The certificate tree file is stored in the SRAM file system. Required Inputs to the File Signing Process The required inputs to the file signing process are somewhat different for development terminals than deployment terminals. The significant differences are shown in Table 5.
20
MX SERIES REFERENCE MANUAL
Page 27
Table 5
Differences Between Required Inputs
Development Terminals
Deployment Terminals
Manufacturing inputs to the file signing process are included, together with the file signing tool, FILESIGN.EXE, in the MX Series PSP. These inputs make it possible for anyone who has the MX Series PSP to sign and authenticate files.
The required inputs to FILESIGN.EXE must be obtained from the VeriFone CA to logically secure the sponsor and signer privileges for the terminal.
The following two factory inputs are required for the file signing process, in addition to the application files you want to sign and authenticate:
The default certificate and key files can be used with the signing tool, FILESIGN.EXE.
• Default signer certificate, with the filename default.crt
• Default signer private key, with the filename default.key
Note:
A default signer password is not a required entry when using FILESIGN.EXE to sign files for an MX Series development terminal.
To sign files at deployment. Use the VeriShield file signing tool (PN P006-217-02-MK) with the included smart card. Note:
The customer sponsor certificate, which authenticates the customer signer certificate, is usually downloaded to the terminal with the customer signer certificate, but it is not a required FILESIGN.EXE input when signing files to be downloaded to (and authenticated on) a deployment terminal.
Replace a Sponsor Certificate A sponsor may need to clear the current sponsor certificate from a terminal so that a new sponsor can load certificates and applications. To do this, the original sponsor must order a “clear” smart card from the VeriFone CA. The clear smart card is specific to the requesting sponsor. It restores a deployment terminal to the development state (see Figure 5) by:
•
Deleting the current sponsor and signer certificates from the terminal’s application partition.
•
Restoring the default certificate to the terminal’s application partition.
Note: The process for replacing a signer certificate is the same as for replacing a sponsor certificate.
MX SERIES REFERENCE MANUAL
21
Page 28
REPLACE A CERTIFICATE
Deployment Terminal
Development Terminal
Load the clear certificate, random file and random signature file into the terminal.
Root
Root
The VeriShield Process:
VeriFone Partition
Operating System
Application Partition
Sponsor Certificate (validated by the Application Partition Certificate)
* Deletes the current Sponsor and Signer Certificates * Restores the default certificate
VeriFone
Application
Partition
Partition
Operating System
Default Certificate
Signer Certificate (validated by the Sponsor Certificate)
Figure 5
Two Common FA Scenarios
Certificate Replacement Process
Now that we have established which inputs are required to sign files for development terminals and for field terminals, and how certificates, signature files, and keys are interrelated, we can proceed to a more detailed view of the entire FA process. The two most common task-oriented development terminals for FA implementation:
•
Scenario #1, Development Terminals: This case illustrates the file signing process flow for MX Series development terminals. The factory default set of certificates is stored in the certificate tree of the download terminal. In this case, the terminal is still a development terminal with the minimum level of logical security. This scenario is typical for MX Series application developers.
22
MX SERIES REFERENCE MANUAL
Page 29
To support development terminals, you only need the FILESIGN.EXE tool, provided with the PSP, and the default certificate and key to generate valid signature files for application downloading and FA.
•
Scenario #2, Field Terminals: This case illustrates the process flow for MX Series field terminals. A customer has requested from the VeriFone CA a Customer Owner Certificate and a Customer Signer Certificate to establish ownership of, and access to, the terminal as a prerequisite step to deploying the terminal at an end-user site. To support field terminals, the additional items previously listed are required inputs to the file signing tool, FILESIGN.EXE. When the Customer Owner and Signer Certificates have been downloaded and authenticated, only the entity that is issued a Customer Signer Certificate at the owner’s request is authorized to authenticate an application on the owner’s terminal. To sign files at deployment, use the VeriShield file signing tool (PN P006-217-02-MK) and included smart card.
Authenticate Files Stored in RAM or Flash All *.p7s files must reside in the same file system as the application it signs. To perform back-to-back downloads, as described in Chapter 5, all signature files must be retained in the MX Series terminal’s application memory, together with the target application files they authenticate. Restrictions on Downloading Different File Types A typical application download to the MX Series terminal includes different file types. The following table provides downloading restrictions and storage information for the different file types. File Type
Restriction
Certificate (*.crt)
Must be downloaded into RAM.
Signature (*.p7s)
Must be downloaded into the same file system as the application it signs.
Operating system
Must be downloaded into RAM. When the OS files and related certificates and signature files are authenticated, they are automatically moved from RAM into the FLASH-partition, reserved for the operating system.
MX SERIES REFERENCE MANUAL
23
Page 30
The normal size of a signature file is approximately 400 bytes. Depending on the application’s size and on how memory space is allocated, the area available for storing multiple signature files must be carefully managed. The memory space required by a certificate file is also approximately 400 bytes, but certificate files are temporary. When a certificate is authenticated, the data it contains is copied to the certificate tree, and the certificate file can be erased from the target file’s RAM by the application.
The FILESIGN.EXE File Signing Tool
To generate the signature files required for FA, you must sign all executable files and other files to be logically protected, using the FILESIGN.EXE software tool. This section provides information on how to use this tool, which is included on the VeriShield CD. The file signing tool, FILESIGN.EXE, generates a formatted file called a signature file, recognized by the filename extension *.p7s. You can run FILESIGN.EXE on a host computer (PC) in DOS command-line mode, or invoke the program under Windows® and then use the FileSign dialog box to make the required entries.
Note: The file signing process for operating system files is done for MX Series terminal customers by the VeriFone CA. For operating system updates, VeriFone provides customers with a complete download package that includes all certificates and signature files required for authentication.
FILESIGN.EXE System Requirements
The FILESIGN.EXE tool requires one of the following computing environments:
•
Windows® NT® Version 4.0, SP5
•
Windows® 95
•
Windows® 2000
•
Windows® XP
•
Internet Explorer®
Internet Explorer can be downloaded from the Microsoft® Web site: www.microsoft.com.
Operating Modes for FILESIGN.EXE
24
FILESIGN.EXE can run on the host computer in two user modes:
•
Command-line mode (Windows PC DOS shell): Command-line mode is useful for application developers who perform batch file downloads and is convenient when using file download tools provided by VeriFone such as VeriTalk and the direct download utility, DDL.EXE. In command-line mode, you can sign a batch of files in a single operation.
•
Graphical interface mode (Windows): Use the FileSign dialog box (Figure 6) to select the file to sign and assign a name and destination location for the generated signature file on the host computer. When you run the FILESIGN.EXE tool under Windows, you can sign only one file at a time.
MX SERIES REFERENCE MANUAL
Page 31
You can also specify to store the target file in the target file’s RAM (default location) or in the flash file system. If required, you can navigate through the file system on your PC to select the signer certificate file (*.crt) and signer private key file (*.key) to use as inputs to the file signing process.
Figure 6
FileSign Dialog Box for FILESIGN.EXE Under Windows
Note: If the entry of a signer password is a required input, a secondary dialog box displays to enter and confirm the password. A signer password is required for a deployment terminal, but not for a development terminal.
Command-Line Entries for FILESIGN.EXE
Table 6 lists and describes the switches that make up the command-line mode syntax for FILESIGN.EXE. Table 6
Command-Line Mode Switches for FILESIGN.EXE
Switch
Description
Requirements
-C, -c
Signer certificate file name (*.crt).
Required input for development terminals and deployment terminals. For development terminals, you can use the default signer certificate, default.crt. For deployment terminals, you must use the signer certificate issued by the VeriFone CA.
-K, -k
Signer private key filename (*.key).
Required input for development terminals and deployment terminals. For development terminals, you can use the default signer private key, default.key. For deployment terminals, you must use the signer private key provided by the VeriFone CA.
MX SERIES REFERENCE MANUAL
25
Page 32
Table 6
Command-Line Mode Syntax Example
Command-Line Mode Switches for FILESIGN.EXE (Continued)
Switch
Description
Requirements
-P, -p
Signer password for decrypting the signer private key.
Required input only for deployment terminals.
-F, -f
Name of the application file to sign (*.out, *.lib, or other file type).
Required for development terminals and for deployment terminals.
-S, -s
Name of the signature file (*.p7s) for FILESIGN.EXE to generate for the target application file.
Required for development terminals and for deployment terminals.
The VeriFone CA issues and securely conveys this password to an authorized signer.
In the FILESIGN.EXE command-line entry example below, note that the syntax used applies to an MX Series development terminal with the factory set of certificates, and not to a deployment terminal. The differences are the following:
•
The default signer certificate and default signer key file names that are provided by VeriFone as part of the MX Series PSP are entered on the command line instead of customer-specific customer signer certificate and customer signer private key file names, and
•
The switch for signer password (-P password) is not used, because a customer signer password is only required to sign and authenticate files for MX Series deployment terminals being prepared for deployment.
Note how the command-line mode switches described in Table 6 are used in this example: filesign -f file.out -s file.p7s -c default.crt -k default.key
•
The -f switch indicates that the application file “file.out” must be signed by the FILESIGN.EXE tool. Executable files, such as *.out and *.lib files, must always be signed if they are to run on the terminal following a download. Depending on the application’s logical security requirements, other types of files, such as data files and font files, may also need to be signed and are authenticated on download.
26
•
The -s switch is followed by the name of the signature file to generate, file.p7s.
•
The -c switch is followed by the name of the default signer certificate to use for FA with the development terminal, “default.crt”.
MX SERIES REFERENCE MANUAL
Page 33
•
FILESIGN.EXE Graphical Interface Mode
The -k switch is followed by the name of the default signer private key file, default.key. A signer private key is a required input to the file signing process for development terminals and for deployment terminals.
When you execute FILESIGN.EXE in the Windows environment, the FileSign dialog box displays (see Figure 6). The FileSign dialog box has four entry fields, each of which is followed by a “Next” [...] selection button, as well as one check box, and the OK and Cancel buttons:
•
Press ALT+C or click on the [...] button to the right of the “Certificate” field to locate and select the certificate file (*.crt) that you want to use to sign the file.
•
Press ALT+K or click on the [...] button to the right of the “Key” field to locate and select the signer private key file (*.key).
•
Press ALT+F or click on the [...] button to the right of the “File to be signed” field to locate and select the application file (*.out, *.lib, or other) to sign. If necessary, you can also modify the filename. If you want to store the file in flash memory on download to the terminal, check the “Stored in Flash” check box. This adds the “F:” prefix to the target file name.
•
Press ALT+S or click on the [...] button to the right of the “Signature file” field to enter a filename for the signature file to be generated. The filename extension must always be *.p7s. You can also choose another directory in which to store the generated signature file.
•
When all entries are complete, press ALT+O or click the OK button to execute FILESIGN.EXE and generate the signature file. Or, press ALT+A, or click Cancel to exit the FILESIGN.EXE utility.
When the necessary signature files are generated to authenticate the application or applications on the MX Series terminal, you are ready to perform the application download procedure. For more information about FA within the context of specific download procedures, see Chapter 5.
Steps to Sign Files
Use the following procedure to successfully sign files using the default .crt and default .key files.
1
Produce the .OUT file. If there are multiple .OUT files to download, then each file must be signed.
2
Launch the FILESIGN.EXE application.
Note: FILESIGN has a Windows and DOS command line mode. This procedure is for the Windows mode.
3
Select the DEFAULT.CRT certificate file. MX SERIES REFERENCE MANUAL
27
Page 34
4
Select the DEFAULT.KEY file.
5
Select the *.OUT file to be signed, for example, APP.OUT.
6
Click OK to produce the .P7S file.
Note: The signature file name must be the same as the .OUT file, but must have the .P7S extension, for example, APP.P7S.
7
Download both the application *.OUT file the *.P7S signature file. From DDL, use the -i option. For example, -iAPP.P7S. The OS authenticates the application before it can execute. An error message displays if the application fails authentication. Enter System Mode (ENTER+7+password) to clear the error message. Signature files (*.P7S) are saved in the file system. This allows back-to-back transfers to authenticate properly. Use the following command to sign from the DOS command line: filesign -c default.crt -k default.key -f app.out -s app.p7s
Note: Replace the app.out and app.p7s filenames in the command line with the proper application filename.
Download File Structure
28
The MX Series file system supports a hierarchical structure. Applications are downloaded to the directory /home/usr1. The application may define subdirectories under /home/usr1 as needed. The signature file (.p7s) for an executable must reside in the same directory as the executable. If new certificates are to be added to a system, they must be downloaded into a subdirectory called crt (lower case). The absolute path is /home/usr1/crt. The system scans the crt directory as needed. In order to create subdirectories during download, use the Linux tar command.
MX SERIES REFERENCE MANUAL