Change default signature algorithm from SHA1 to SHA256

This commit is contained in:
Dennis Birkholz 2016-06-05 18:09:00 +02:00
parent fc2a7cef20
commit 18200131df

View File

@ -3222,7 +3222,7 @@ class X509
* @access public
* @return mixed
*/
function sign($issuer, $subject, $signatureAlgorithm = 'sha1WithRSAEncryption')
function sign($issuer, $subject, $signatureAlgorithm = 'sha256WithRSAEncryption')
{
if (!is_object($issuer->privateKey) || empty($issuer->dn)) {
return false;