X.509 cert's authoriztion system for PHP