~hww3/caudium

dc7356bc4aa4713e64a3e3fec265e6c97059030d — William Welliver a month ago c5800d1 master
handle non-rsa tls private keys
1 files changed, 2 insertions(+), 2 deletions(-)

M server/base_server/configuration.pike
M server/base_server/configuration.pike => server/base_server/configuration.pike +2 -2
@@ 2617,12 2617,12 @@ void load_ssl_configuration(mapping options, mixed ctx,
  }

  destruct (privs);
  part = msg->parts["RSA PRIVATE KEY"];
  part = msg->parts["PRIVATE KEY"] || msg->parts["RSA PRIVATE KEY"];

  if (!part || !(key = part->decoded_body()))
    ({ report_error, throw }) ("ssl3: Private key not found.\n");

  object rsa = Standards.PKCS.RSA.parse_private_key(key);
  object rsa = Standards.PKCS.parse_private_key(key);
  if (!rsa)
    ({ report_error, throw }) ("ssl3: Private key not valid.\n");
#if constant(Standards.PKCS.Certificate.check_cert_rsa)