PKI Certificate Parsing

Every PKI certificate has two sections to hold information related to the person for whom this certificate was issued, Subject and Alternative Subject Name.

A Subject section example value is as follows:

Subject: C=UA, L=Kiev, O=Serena, OU=SDA, CN=sample name/emailAddress=sample@email.com/street=sample street, SN=sample/name=sample

An Alternative Subject Name section example value is as follows:

X509v3 Subject Alternative Name: email:email@test.com, DNS:dns-sample, IP Address:1.2.3.4, URI:uri test, Registered ID:1.2.3.4.5.6

Subject Attributes

The attributes that can be selected for parsing in the Subject field are as follows:

C

O

T

OU

CN

L

ST

SN

EmailAddress

DC

UID

STREET

SURNAME

GIVENNAME

INITIALS

GENERATION

UnstructuredAddress

UnstructuredName

UNIQUE_IDENTIFIER

DN_QUALIFIER

PSEUDONYM

POSTAL_ADDRESS

NAME_AT_BIRTH

COUNTRY_OF_CITIZENSHIP

COUNTRY_OF_RESIDENCE

GENDER

PLACE_OF_BIRTH

DATE_OF_BIRTH

POSTAL_CODE

BUSINESS_CATEGORY

TELEPHONE_NUMBER

NAME

Alternative Subject Attributes

The attributes that can be selected for parsing in the Alternative Subject Name section are as follows:

otherName

email

DNS

URI

IP Address

Registered ID