8000 X509 getExtension is critical? · phpseclib phpseclib · Discussion #2036 · GitHub
[go: up one dir, main page]

Skip to content

X509 getExtension is critical? #2036

Answered by terrafrost
ToastStudios asked this question in Q&A
Discussion options

You must be logged in to vote

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 $x509->getExtensionCriticalStatus($id) method if you'd like! LMK!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ToastStudios
Comment options

Answer selected by ToastStudios
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0