1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-12-12 00:59:45 +01:00
This commit is contained in:
terrafrost 2016-06-11 19:17:15 -05:00
commit 2bae0c3881

View File

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