message: Add error recovery for wrongly formatted sshKeys
diff: @@ -5,11 +5,16 @@ const R = require('ramda');
  const sshpk = require('sshpk');
  const bodyParser = require('body-parser');
  -const toFingerprint = sshKey =>
  - sshpk
  +const toFingerprint = sshKey => {
  + try {
  + return sshpk
  .parseKey(sshKey, 'ssh')
  .fingerprint()
  .toString();
  + } catch(e) {
  + logger.error(`Invalid ssh key detected: ${sshKey}`);
  + }
  +}
  const keysRoute = async (req, res) => {
  @@ -34,6 +39,7 @@ const keysRoute = async (req, res) => {
  const fingerprintKeyMap = R.compose(
  R.fromPairs,
  + R.reject(([fingerprint]) => fingerprint === undefined),
  R.map(sshKey => [toFingerprint(sshKey), sshKey]),
  )(sshKeys);
  