certificate {
#
# The format of the certificate and private key file may be one of
- # PEM or ASN1. If PEM format is used a complete certificate chain
- # may be provided in the 'certificate_file'.
+ # PEM, DER or ASN1 (ASN1 is an alias for DER).
+ # If PEM format is used a complete certificate chain may be provided
+ # in the 'certificate_file'.
#
# format = "PEM"
const FR_NAME_NUMBER certificate_format_table[] = {
{ "PEM", SSL_FILETYPE_PEM },
{ "ASN1", SSL_FILETYPE_ASN1 },
+ { "DER", SSL_FILETYPE_ASN1 }, /* Alternate name for ASN1 */
{ NULL, 0 },
};
return NULL;
}
}
+
+ /*
+ * Sets the list of CAs we send to the peer if we're
+ * requesting a certificate.
+ *
+ * This does not change the trusted certificate authorities,
+ * those are set above with SSL_CTX_load_verify_locations.
+ */
if (conf->ca_file && *conf->ca_file) SSL_CTX_set_client_CA_list(ctx, SSL_load_client_CA_file(conf->ca_file));
#ifdef PSK_MAX_IDENTITY_LEN