X509: set parameter fields to null for CSR's / RSA

This commit is contained in:
terrafrost 2016-06-19 10:53:20 -05:00
parent 6ff421d354
commit b6801c837c

View File

@ -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;
}
}