]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl: Add support for EC for the CA used to sign generated certificates
authorChristopher Faulet <cfaulet@qualys.com>
Fri, 9 Oct 2015 09:15:03 +0000 (11:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2015 10:13:12 +0000 (12:13 +0200)
commit7969a33a01c3a70e48cddf36ea5a66710bd7a995
treedca0712b348fd22f74743964badfb87801541a05
parentc6f02fb929f175e4fbd164bf3573ca420316903e
MINOR: ssl: Add support for EC for the CA used to sign generated certificates

This is done by adding EVP_PKEY_EC type in supported types for the CA private
key when we get the message digest used to sign a generated X509 certificate.
So now, we support DSA, RSA and EC private keys.

And to be sure, when the type of the private key is not directly supported, we
get its default message digest using the function
'EVP_PKEY_get_default_digest_nid'.

We also use the key of the default certificate instead of generated it. So we
are sure to use the same key type instead of always using a RSA key.
include/proto/ssl_sock.h
src/ssl_sock.c