PHP library for validating X.509 certificates (SSL) using openssl command