Add more Subject fields, especially for EV certs

This commit is contained in:
Matthew McPherrin
2017-01-04 17:27:23 -08:00
parent fd470514d7
commit b1898291fa
+12 -7
View File
@@ -225,13 +225,18 @@ func redify(text string) string {
func oidify(oid asn1.ObjectIdentifier) string {
raw := oid.String()
names := map[string]string{
"2.5.4.3": "CommonName",
"2.5.4.6": "Country",
"2.5.4.7": "Locality",
"2.5.4.8": "Province",
"2.5.4.10": "Organization",
"2.5.4.11": "OrganizationalUnit",
"1.2.840.113549.1.9.1": "emailAddress",
"2.5.4.3": "CommonName",
"2.5.4.5": "Serial Number",
"2.5.4.6": "Country",
"2.5.4.7": "Locality",
"2.5.4.8": "Province",
"2.5.4.10": "Organization",
"2.5.4.11": "OrganizationalUnit",
"2.5.4.15": "Business Category",
"1.2.840.113549.1.9.1": "emailAddress",
"1.3.6.1.4.1.311.60.2.1.1": "EV Locality",
"1.3.6.1.4.1.311.60.2.1.2": "EV Province",
"1.3.6.1.4.1.311.60.2.1.3": "EV Country",
}
name, ok := names[raw]
if ok {