I am using OpenSSL for implementing Digital Signatures.
As a part of the requirement I need to identify the Class of a certificate.
As far as I have read, the classes and types of a certificate are vendor specific.
However, I want to know if there is any way of identifying and retrieving such information
from an X509 Certificate?
Types and Classes are something that various CA invent mainly for marketing purposes. They have no definition within standards. Consequently you can’t extract such information from the certificate.
In general, digital certificates are indeed different – they can be X.509 certificates, IPSec certificates (this seems to be a subset of X.509 certificates with extra requirements), attribute certificates (maybe I forgot something). They have different structure, but in real life you will deal only with X.509 certificates (Attribute Certificates become more widespread, but very slowly, and IPSec certs are almost never seen in wild).