X509 getExtension is critical? #2036
-
My goal is to get all request extensions and whether they are are critical or not.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
For the time being I'd suggest doing something like this instead: $csr = $x509->loadCSR('...');
foreach ($csr['certificationRequestInfo']['attributes'] as $attribute) {
if ($attribute['type'] != 'pkcs-9-at-extensionRequest') {
continue;
}
print_r($attribute['value'][0]);
break;
} That said, I can add a |
Beta Was this translation helpful? Give feedback.
-
I added a new function - c228cc0#diff-ed108d6dcb12db1d73ce64c9c23d9bda034fd74be9b099617a8bf84fa72945b8R3512 I didn't add |
Beta Was this translation helpful? Give feedback.
For the time being I'd suggest doing something like this instead:
That said, I can add a
$x509->getExtensionCriticalStatus($id)
method if you'd like! LMK!