The OpenPGPPlain signer has the fully qualified class name: org.signserver.module.openpgp.enterprise.signer.OpenPGPPlainSigner
The OpenPGPPlain signer signs arbitrary hashed data and produces a signature using NONEwithX signature algorithms (NONEwithRSA, NONEwithECDSA or NONEwithDSA) and expects that hash digest is supplied for signing not the data itself.
The signature algorithm is chosen depending on the signing key: NONEwithDSA for DSA keys, NONEwithECDSA for ECDSA keys, and otherwise NONEwithRSA. When using an RSA key, the input must be in an appropriate format, refer to RFC#3447 for details.
Note that this signer uses OpenPGP and not X.509 certificates. The OpenPGP public key can instead be obtained from the worker's status output. Additionally, the generate CSR functionality allows adding a user ID to the public key and storing the new public key in the PGPPUBLICKEY worker property.
The key management operations are the same as for the generic OpenPGP Signer.
Property specifying the algorithm used to create the message digest (hash) of the request document to put in the log. Default: SHA256.
|DO_LOGREQUEST_DIGEST||Property specifying if the message digest of the requested document should be put in the log. Default: true.|
|SELFSIGNED_VALIDITY||The number of seconds the key is valid for after its creation. This property is used when a certification is added to the key so to extend the current validity, set a higher value and perform the certification again. An empty value or zero means that the key does not expire (default). Optional. Default: (empty).|
|PGPPUBLICKEY||Property for storing the latest OpenPGP public key in ASCII armored form after adding user IDs / certifications to it. Remember to store the updated public key in this property so that the current user IDs are kept when new ones are added later on. Optional. Default: (empty).|
Setting this property to true, switches the behavior of the generate CSR functionality to not add user ID / certification but instead generate an OpenPGP revocation certificate. Optional. Default: "false".
The idea is to only switch this to true temporarily, generate the revocation certificate and then switch it back to false.
The header for the PGP public key block,
Worker Log Fields
|REQUEST_DIGEST||A message digest (hash) for the request document in hex encoding.|
|REQUEST_DIGEST_ALGORITHM||The name of the message digest (hash) algorithm used for the request digest in the log.|
|RESPONSE_ENCODED||The response document (plain signature) in base64 encoding.|