You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

For some functionality the library needs to know about certificates and keys:

  • Verification of secure connections
    To verify secure connections (SSL/TLS/HTTPS) to mail servers, the underlying JVM must know the certificate chain. You can accomplish this by importing them there, or provide an additional Java Key Store (JKS) to the library.
  • Verification of PGP signatures
    To verify PGP signatures, the public key of signers must be known. To do this, you can load a PGP public key ring into the library. Refer to you PGP installation about how to export public keys.

Operations

loadCertificateStore

ParameterTypesDirectionDescriptionAllowed Values / Example
keyStoreLocationStringinSpecify the path to the  keystore file.opt/bridge/crypto/mailservercerts.jks
keyStorePassword

String

inSpecify the password of the keystore.


loadPgpPublicKeyRing

to be discontinued

Future versions of the library will rely on setPgpKeyProvider() solely (see below), this operation will disappear. Until then it is still required if you want to verify signatures of unencrypted emails.

ParameterTypesDirectionDescriptionAllowed Values / Example
keyRingLocationStringinSpecify the path to the  keyring file.opt/bridge/crypto/pubkeys.asc

  • No labels