Skip to main content

Veritran Docs

[en] Create a GPG Crypto Profile

[en] 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.

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

[en] Parameter

[en] Example value

[en] Crypto profile code

[en] MyGPGProfileCode

[en] Description

[en] Unit Test GPG

[en] Algorithm

[en] RSA

Sugerencia

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

[en] Key size

4096

Sugerencia

[en] This is an informative field.

[en] Profile type

[en] GPG

Sugerencia

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

[en] Product code

[en] P1

[en] Profile encoding

[en] VTFET_HEXA_STR

[en] Key code

[en] GPGK

Sugerencia

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

[en] Sign key code

[en] Leave this field blank.

Sugerencia

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

[en] 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;  
 
    /