From c6ff35a494c0293e31d78bd0da19205769d4ae72 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Mon, 30 Sep 2024 04:29:10 -0500 Subject: [PATCH] X509: make the attributes section of new CSRs be blank --- phpseclib/File/X509.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index 25d5db9e..9c872c44 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -3914,7 +3914,8 @@ class File_X509 array( 'version' => 'v1', 'subject' => $this->dn, - 'subjectPKInfo' => $publicKey + 'subjectPKInfo' => $publicKey, + 'attributes' => array() ), 'signatureAlgorithm' => array('algorithm' => $signatureAlgorithm), 'signature' => false // this is going to be overwritten later