mirror of
https://github.com/square/certigo.git
synced 2024-04-21 12:32:40 +00:00
Add more Subject fields, especially for EV certs
This commit is contained in:
+12
-7
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user