+4
-0
lines changedFilter options
+4
-0
lines changed Original file line number Diff line number Diff line change
@@ -37,6 +37,7 @@ type Name struct {
37
37
L string `json:"L,omitempty" yaml:"L,omitempty"` // Locality
38
38
O string `json:"O,omitempty" yaml:"O,omitempty"` // OrganisationName
39
39
OU string `json:"OU,omitempty" yaml:"OU,omitempty"` // OrganisationalUnitName
40
+
E string `json:"E,omitempty" yaml:"E,omitempty"`
40
41
SerialNumber string `json:"SerialNumber,omitempty" yaml:"SerialNumber,omitempty"`
41
42
OID map[string]string `json:"OID,omitempty", yaml:"OID,omitempty"`
42
43
}
@@ -195,6 +196,9 @@ func (cr *CertificateRequest) Name() (pkix.Name, error) {
195
196
}
196
197
name.ExtraNames = append(name.ExtraNames, pkix.AttributeTypeAndValue{Type: oid, Value: v})
197
198
}
199
+
if n.E != "" {
200
+
name.ExtraNames = append(name.ExtraNames, pkix.AttributeTypeAndValue{Type: asn1.ObjectIdentifier{1, 2, 840, 113549, 1, 9, 1}, Value: n.E})
201
+
}
198
202
}
199
203
name.SerialNumber = cr.SerialNumber
200
204
return name, nil
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4