'use strict'; module.exports = function () { let tls = this.secure || process.env.NODE_ENV === 'production' && this.get('X-Forwarded-Proto') === 'https'; let hkp = (tls ? 'hkps://' : 'hkp://') + this.host; let del = (tls ? 'https://' : 'http://') + this.host + '/api/v1/removeKey?email=user@example.com'; this.body = `

Welcome to the OpenPGP key server

This server verifies email address as well as private key ownership by sending an encrypted verification email.

Try it out

  1. Configure this key server in your HKP compatible OpenPGP client using this url: ${hkp}
  2. Now just upload a public key like you always do.
  3. Check your inbox and click on the verification link inside the encrypted message.
  4. You can delete all your data from the server at any time using this link: ${del}

Documentation and code

Please refer to the documentation to learn more about the api.

License AGPL v3.0

`; this.set('Content-Type', 'text/html; charset=utf-8'); };