# CRL file parsing

- Thread: https://externals.io/message/52497
- Original archive: https://news-web.php.net/php.internals/52497
- Started by Ricardo Maia on 2011-05-22T02:06:55+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #52497 — Ricardo Maia — 2011-05-22T02:06:55+00:00

URL: https://externals.io/message/52497#52497

I need to parse a CRL (Certificate Revocation List) file and verify if a
client certificate has been revoked, but the PHP OpenSSL extension do not
support this feature.

I saw a patch for this issue dated from 2007
http://bugs.php.net/bug.php?id=40046
http://pecl.php.net/~pierre/ext-openssl-crl.patch
http://mbechler.eenterphace.org/blog/uploads/ext-openssl-crl.patch

Somebody have news about this issue?

Has a workaround, like a external program call with `exec()` or `system()` ?

I'm thinking about a command line program like this 'openssl crl -inform DER
-text -noout -in mycrl.crl'. So, parse the output and find the serial number
of client certificate.

Thanks,
Ricardo Maia (Brainfork)
