Native PGP

Native PGP enables you to perform cryptographic operations, set up and manage PGP servers, and provision secure file transfer between Trading Partners in Sterling B2B Integrator natively.

At present, you can perform PGP cryptographic operations using Command Line 2 Adapter on third-party servers. The PGP keys are managed by external PGP vendors​ and documents are processed outside Sterling B2B Integrator. This has led to a few limitations such as dependency on the external PGP server and additional license cost for the user.

Native PGP addresses the above limitations and enables you to create PGP keys within Sterling B2B Integrator using the PGP Secret Key and PGP Public Key options. You can also perform cryptographic operations such as encryption, decryption, signing, and verification using Bouncy Castle APIs.

Native PGP supports the following:
  • Key management within Sterling B2B Integrator

  • Processing of PGP documents within Sterling B2B Integrator

  • External PGP keys within Sterling B2B Integrator

  • Interoperability of PGP keys​

  • REST APIs for key management​

  • Import/Export of all PGP keys​

  • Logging for PGP​

PGP Properties

The properties specific to Native PGP is defined in the pgp.properties file. It consists of cryptographic algorithms supported by Bouncy Castle APIs.

The following are the list of properties:
Property Description
pgpEncryptionAlgorithm The corresponding number of the encryption algorithm name used during Native PGP encryption.

For example: For encryption algorithm of AES_256, set this as pgpEncryptionAlgorithm=9. Default value is 9 (AES_256).

pgpSigningAlgorithm The corresponding number of the signing algorithm name used during Native PGP Signing.

For example: For signing algorithm of SHA256, set this as pgpSigningAlgorithm=8. Default value is 8 (SHA256).

pgpCompressionAlgorithm The corresponding number of the compression algorithm name used during Native PGP Compression.

For example: For compression algorithm of ZIP, set this as pgpCompressionAlgorithm=1. Default value is 1 (ZIP).

buffer.size The buffer used to write partial packets. Default value is 65536.
publicKeyConfirmPageKeys Used to list the number of Public keys on the confirmation page. Based on the set value, you can see those many keys in the Sterling B2B Integrator dashboard associated with the keyring when you check-in a Public key file.

Default value is 5.

secretKeyConfirmPageKeys Used to list the number of Secret keys on the confirmation page. Based on the set value, you can see those many keys in the Sterling B2B Integrator dashboard associated with the keyring when you check-in a Secret key file.

Default value is 5.

Supported Algorithms

Following are the list of algorithms supported with Native PGP:
PGP Algorithm Type PGP Supported Algorithm with Native PGP
PGP Encryption Algorithm IDEA, TRIPLE_DES, CAST5, BLOWFISH, DES, AES_128, AES_192, AES_256, TWOFISH, CAMELLIA_128, CAMELLIA_192, CAMELLIA_256
PGP Compression Algorithm ZIP, BZIP2, ZLIB
PGP Signing Algorithm MD5, SHA1, RIPEMD160, MD2, SHA256, SHA384, SHA512, SHA224
Following are the list of Public/Secret Key algorithms supported with Native PGP:
PGP Key Algorithm Type PGP Key Algorithm suitable with Native PGP
PGP Encryption Algorithm RSA_GENERAL, RSA_ ENCRYPT, ELGAMAL_ENCRYPT, ELGAMAL_GENERAL, ECDH
PGP Signing Algorithm RSA_GENERAL, RSA_ SIGN, ELGAMAL_GENERAL, ECDSA, DSA