diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index 7796bba7..70cad035 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -3078,6 +3078,9 @@ class File_X509 case 'rsaEncryption': $csr['certificationRequestInfo']['subjectPKInfo']['subjectPublicKey'] = base64_encode("\0" . base64_decode(preg_replace('#-.+-|[\r\n]#', '', $csr['certificationRequestInfo']['subjectPKInfo']['subjectPublicKey']))); + $csr['certificationRequestInfo']['subjectPKInfo']['algorithm']['parameters'] = null; + $csr['signatureAlgorithm']['parameters'] = null; + $csr['certificationRequestInfo']['signature']['parameters'] = null; } }