Skip to main content

Veritran Docs

Create a GPG Crypto Profile

In the SQL editor, create the crypto profile in the VT-NET database using StoreProcedure. This will create a new entry in the crypto_profile table.

GPG Crypto profile entries in the VT-NET database must contain the following parameters:

Parameter

Example value

Crypto profile code

MyGPGProfileCode

Description

Unit Test GPG

Algorithm

RSA

Tip

In the case of GPG, this is an informative field as the algorithms used are specified in the keys.

Key size

4096

Tip

This is an informative field.

Profile type

GPG

Tip

It must be GPG, regardless of whether the profile's purpose is encryption or signing.

Product code

P1

Profile encoding

VTFET_HEXA_STR

Key code

GPGK

Tip

It must match the certificate code set up in Middleware, as the user-defined platform certificate will be used as key.

Sign key code

Leave this field blank.

Tip

This field is optional. If a code is specified, the key will be used to sign before an encryption operation.

The following code snippet shows how to create a crypto profile entry in the database using the example values listed above.

BEGIN  
 
        VTDB.INS_UPD_CRYPTO_PROFILES(' MyGPGProfileCode ',' Unit Test GPG ','4096',’GPG',2049,TO_CLOB(''), 'MB','H',NULL,’RSAE’,'VERITRAN', NULL, 0);  
 
    END;  
 
    /