mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-29 18:18:39 +00:00
Merge pull request #997 from DennisBirkholz/pull-change-defaults
Change default signature algorithm from SHA1 to SHA256
This commit is contained in:
commit
a06ca1d212
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user