diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index 51af17bc..ccf7d412 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -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;