parse x509 certification