Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 4 of 11

MX Series Reference Manual: Chapter 3, pages 15 to 24

Pages 15 to 24 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 15

CHAPTER 3 File Authentication This chapter provides an overview of File Authentication (FA) and explains how to use the file signing utility to generate the signature files required to perform downloads and authenticate files on the MX Series terminals. In Chapter 5, the topic of file authentication is also discussed in the context of specific file download procedures.

Overview

The MX Series terminal has a security architecture, called VeriShield, which has both physical and logical components. The logical security component of the VeriShield architecture, which is part of the terminal’s operating system software, is called file authentication (FA). FA is a secured process for authenticating files using digital signatures, cryptographic keys, and digital certificates. This process enables the sponsor of an MX Series terminal to logically secure access to the terminal by controlling who is authorized to download application files to that terminal. It proves and verifies the following information:

•

File’s origin

•

Sender’s identity

•

Integrity of the file’s information.

The VeriFone Certificate Authority

To manage the tools and processes related to FA, VeriFone has established a centralized VeriFone Certificate Authority, or VeriFone CA. This agency is responsible for managing keys and certificates. The VeriFone CA uses an integrated set of software tools to generate and distribute digital certificates and private cryptographic keys to customers who purchase the MX Series terminal.

Required Files

The following specially formatted files support the FA process:

•

A digital certificate is a digital, public document used to verify the signature of a file.

•

A digital signature is a piece of information based on both the file and the signer’s private cryptographic key. The file sender digitally signs the file using a private key. The file receiver uses a digital certificate to verify the sender’s digital signature.

MX SERIES REFERENCE MANUAL

9

Page 16

•

Signer private keys (*.key files) are securely conveyed to clients on smart cards. The secret passwords required by clients to generate signature files, using signer private keys, are sent as PINs over a separate channel such as registered mail or encrypted e-mail.

Some files, such as private key files, are encrypted and password-protected for data security. Others, such as digital certificates and signature files need not be secured to safeguard the overall security of VeriShield. Within the FILESIGN.EXE tool, the special file types that support the file authentication process are recognized by their filename extensions: File Type

Extension

Signature

*.p7s

Signer private key

*.key

Digital certificate

*.crt

All digital certificates are generated and managed by the VeriFone CA, and are distributed on request to MX Series terminal clients, either internally within VeriFone or externally to sponsors.

Note: All certificates that are issued by the VeriFone CA for the MX Series terminal platform, and for any VeriFone platform with the VeriShield security architecture, are hierarchically related. That is, a lower-level certificate can only be authenticated under the authority of a higher-level certificate. The security of the highest-level certificate called the platform root certificate is strictly controlled by VeriFone. The required cryptographically related private keys that support the file authentication process are also generated and distributed by the VeriFone CA. Certificates Contain Keys that Authenticate Signature Files

•

Sponsor certificate: Certifies a client’s sponsorship of the terminal. It does not, however, convey the right to sign and authenticate files. To add flexibility to the business relationships that are logically secured under the file authentication process, a second type of certificate is usually required to sign files. A sponsor certificate is authenticated under a higher-level system certificate called the application partition certificate.

Note: Only one sponsor certificate is permitted per terminal.

10

MX SERIES REFERENCE MANUAL

Page 17

•

Signer certificate: Certifies the right to sign and authenticate files for terminals belonging to the sponsor. A signer certificate is authenticated under the authority of a higher-level client certificate (the sponsor certificate).

The required sponsor and signer certificates must either have been previously downloaded and authenticated on the terminal, or they must be downloaded together with the new signature files and target files for them to authenticate correctly. Signer Private Keys are Issued to Secure the File Signing Process Signer private keys are loaded onto a smart card. This smart card is securely delivered to the business entity that the terminal sponsor has authorized to sign, download, and authenticate applications to run on the sponsor’s terminal. The VeriFone CA can also issue additional sets of sponsor and signer certificates, and signer private keys to support multiple sponsors and multiple signers for a specific platform. To establish the logical security of applications to download to an MX Series terminal, the designated signer uses the signer private key issued by the VeriFone CA as a required input to the file signing tool, FILESIGN.EXE. Every signature file contains information about the signer private key used to sign it. When a signature file generated using a signer private key downloads to the MX Series terminal, a successful authentication depends on whether the signer private key used to sign the target file matches the signer certificate stored in the terminal’s certificate tree.

How FA Works

FA consists of three basic processes:

1

Development: The file signing software tool FILESIGN.EXE creates a signature file for each application file to authenticate.

2

Pre-deployment: An optimal certificate structure is determined, and the necessary certificates and keys created.

3

Deployment: The development and pre-deployment processes, once complete, are used in combination to prepare a terminal for deployment.

Development Process In this process:

1

The application developer creates an application file.

2

The developer assigns a name to the application file.

3

The application file becomes a required input for the FILESIGN.EXE tool (included in the DTK).

MX SERIES REFERENCE MANUAL

11

Page 18

4

The default certificate (default.crt) and default key (default.key) included in the SDK are inputs for the FILESIGN.EXE tool.

5

Using the application file, default certificate, and default key, FILESIGN.EXE creates a signature file (*.p7s).

6

The signature file and the original application file are loaded into a development terminal, where the following actions occur:

a When an attempt is made to execute an application, a matching signature file must be present.

b When a matching application file is found, the operating system compares the signature file’s signature against the values stored in the application file’s calculated signature.

12

7

The application file is tested and debugged.

8

After the application file is fully debugged, it becomes an input for the deployment process.

MX SERIES REFERENCE MANUAL

Page 19

The development process is illustrated in Figure 1.

Fully debugged application file

Deployment Process

Application file created (with developerassigned name)

Developer creates application SDK

Application File

VeriShield

Default Certificate

Default Key

Signature File (.P7S)

Debug application file; make necessary changes 1) When an attempt is made to execute an application, a matching signature file must be present. 2) When a matching application is found, the operating system compares the signature file against the values stored in the application file’s calculated signature.

Figure 1

Development Process

Pre-Deployment Process

1

A sponsor connects to the VeriFone CA Web site and requests certificates for deployment terminals.

2

Based on information provided by the sponsor through the VeriFone CA Web site, the VeriFone CA determines the required certificate structure.

MX SERIES REFERENCE MANUAL

13

Page 20

3

VeriFone CA generates the following items for the sponsor:

a Smart card containing a set of certificates and keys. b Smart card PIN. 4

VeriFone CA sends the smart card and smart card PIN to the sponsor.

5

The sponsor uses the smart card and smart card PIN as inputs for the deployment process.

The pre-deployment process is illustrated in Figure 2. Requests certificates for deployment

Sponsor terminals from VeriFone CA Web site

VeriFone CA Web site

VeriFone CA determines required certificate structure

VeriFone CA generates a set of certificates for the Sponsor

Signer Smart Card

Signer Certificate

Signer Certificate

Sponsor

Deployment Process

Smart Card PIN

Figure 2

Pre-Deployment Process

Deployment Process

14

1

The sponsor provides the application file (from the development process) and the smart card and smart card PIN (from the pre-deployment process) as inputs to VeriShield.

2

VeriShield extracts the signer key, signer certificate, and sponsor certificate from the smart card.

MX SERIES REFERENCE MANUAL

Page 21

3

VeriShield uses the extracted data, along with the application file, to create a signature file (*.p7s).

4

VeriShield creates files suitable for downloading from the extracted smart card data.

5

The signature file, the application file, and the extracted signer and sponsor certificates are downloaded into a deployment terminal, where the following actions occur:

a When an attempt is made to execute an application, a matching signature file must be present.

b When a matching application file is found, the operating system compares the signature file’s signature against the values stored in the application file’s calculated signature.

6

Each successfully authenticated executable application file is allowed to run on the terminal. (Otherwise, the executable remains stored in the terminal memory but is not allowed to run. An error message displays.)

The deployment process is illustrated in Figure 3.

Figure 3

Deployment Process

MX SERIES REFERENCE MANUAL

15

Page 22

Planning for FA

FA is an integral part of every MX Series terminals. To safeguard the terminal’s logical security, FA requires that any executable code file must be successfully authenticated before the operating system allows it to execute on the terminal.

Authentication Requirements for Specific File Types

For FA purposes, executable code files are only *.out files. Depending on the logical security requirements of specific applications, other file types used by an application (that is, non-executable files) also need to be authenticated. The application must enforce data authentication.

Which Files to Authenticate in a Specific Application

The first step in the FA process is to determine which files must be authenticated for an application to meet its design specifications for logical security under the VeriShield security architecture.

How Signature Files Authenticate Target Files

Signature files are usually downloaded together with their target application files in the same data transfer operation. This recommended practice lets you specify and confirm the logical security status of the MX Series terminal each time you perform an application download.

In most cases, application designers make these decisions based on specifications provided by the terminal sponsor. Which files to authenticate can be completely transparent to the person or business entity responsible for signing, downloading, and authenticating an application prior to deployment.

When an attempt is made to execute an application, a matching signature file must be present. When a matching application file is found, the operating system compares the signature file’s signature against the values stored in the application file’s calculated signature. It is not mandatory to always download a signature file at the same time as its target application file. For example, you can download the corresponding signature file in a separate operation. A non-authenticated application can reside in the terminal memory, but is not authenticated or allowed to run on the terminal until the signature files for the application executable files are processed by FA after a subsequent download procedure and terminal restart.

Determine Successful Authentication

To ensure the MX Series terminal’s logical security, never assume that a target file was authenticated simply because it downloaded to the MX Series terminal together with its signature file. Confirm that all downloaded executable files run. If an executable code file is not successfully authenticated, the operating system does not allow it to execute and run, either following the initial download or on subsequent terminal restarts. The effect of this rule depends on whether or not all executable files are successfully authenticated:

•

16

MX SERIES REFERENCE MANUAL

If the executable file that failed to authenticate is the main application (*.out) specified in the CONFIG.SYS *GO variable, the main application is not allowed to run.

Page 23

•

If the executable that failed to authenticate is a secondary executable (*.out) or shared library (*.lib) used by the main application, the CONFIG.SYS *GO application executes and runs until it issues a function call to that library. When the main application attempts to access a nonauthenticated executable, the main application may crash.

For non-executable files, it is the application’s responsibility to confirm that all files it uses are successfully authenticated on download completion, and when the application executes the first time following a restart.

Digital Certificates and the FA Process

FA always processes certificates before it processes signature files. Digital certificates (*.crt files) generated by the VeriFone CA have two important functions in the FA process:

•

To define the rules for file location and use (for example, replaceable *.crt files, parent *.crt files, whether child *.crt files can exist, and so on).

•

To convey the public cryptographic keys generated for terminal sponsors and signers that are the required inputs to the file signing tool, FILESIGN.EXE, to verify file signatures.

Hierarchical Relationships Between Certificates All digital certificates are hierarchically related to one another. Under the rules of the certificate hierarchy managed by the VeriFone CA, a lower-level certificate must always be authenticated under the authority of a higher-level certificate. This rule ensures the overall security of VeriShield. To manage hierarchical relationships between certificates, certificate data is stored in terminal memory in a special structure called a certificate tree. New certificates are authenticated based on data stored in the current certificate tree. The data from up to 21 individual related certificates (including root, OS, and other VeriFone-owned certificates) can be stored concurrently in a certificate tree. This means that a new certificate can only be authenticated under a higher-level certificate already resident in the terminal’s certificate tree. This requirement can be met in two ways:

•

The higher-level certificate may have already been downloaded to the terminal in a previous or separate operation.

•

The higher-level certificate can be downloaded together with the new certificate as part of the same data transfer operation.

A development set of higher-level certificates is downloaded into each MX Series terminal at manufacture. When you take a new MX Series terminal out of its shipping packaging, certificate data is already stored in the terminal’s certificate tree. In this “just-out-of-the-box condition,” the MX Series terminal is called a development terminal.

MX SERIES REFERENCE MANUAL

17

Page 24

Typically, a sponsor requests an additional set of digital certificates from the VeriFone CA to establish sponsor and signer privileges. This additional set of certificates is then downloaded to the MX Series terminal when the terminal is being prepared for deployment. When this procedure is complete, the MX Series terminal is called a deployment terminal. Add New Certificates When you add a new certificate file to an MX Series terminal, FA detects it by filename extension (*.crt). On restart, the terminal then attempts to authenticate the certificate under the authority of the resident higher-level certificate stored in the terminal’s certificate tree or one being downloaded with the new certificate. In a batch download containing multiple certificates, each lower-level certificate must be authenticated under an already-authenticated, higher-level certificate. Whether or not the data that the new certificate contains is added to the terminal’s certificate tree depends on its successful authentication. The following points explain how certificates are processed:

•

If a new certificate is successfully authenticated, the information it contains is automatically stored in the terminal’s certificate tree. The corresponding certificate file (*.crt) is then deleted from RAM.

•

If the relationship between the new certificate and an existing higher-level certificate cannot be verified, the authentication procedure for the new certificate fails. In this case, the certificate information is not added to the certificate tree and the failed certificate file (usually ~400 bytes) is retained in application memory.

Development Terminals A development terminal is an MX Series terminal that maintains the original factory set of certificates in its certificate tree. This set of certificates includes several higher-level system certificates and a special client certificate called a default signer certificate (see Figure 4). In the development terminal, the level of logical security provided by FA is minimal, even though applications must still be signed and authenticated before they can run on the terminal. In most application development and test environments, tight security is not required, and the flexibility offered by the MX Series development terminal is more important.

Note: With the factory set of certificates stored in the terminal memory, anyone who has the MX Series PSP and included file signing tool, FILESIGN.EXE, can generate valid signature files for downloading and authenticating files on the MX Series platform.

18

MX SERIES REFERENCE MANUAL