CACreateCert: choose a stronger default hash for longer keys
commita24c29b5db98e592b114f3ce08d6daa3cd2bd9f3
authorKyle J. McKay <mackyle@gmail.com>
Sun, 2 Nov 2014 01:50:44 +0000 (1 18:50 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 2 Nov 2014 01:50:44 +0000 (1 18:50 -0700)
tree803e92ce90c91bba0c554bf789a6327350865b37
parent6ae6da5d54f505c72ed6eabe9e33bf0baa14336e
CACreateCert: choose a stronger default hash for longer keys

If the public key or signing key has a security strength of more
than 128 bits then sha-256 is not appropriate as a default hash
as it has only 128 bits of security strength.  Choose a stronger
hash as the default hash in this case and warn if it's not
available.
CACreateCert