PHP X.509 certificate parser