Documentation ¶
Index ¶
- Variables
- func ConvertDNToPKIXName(dn string) (p *pkix.Name, e error)
- func LoadCertificate(in io.Reader) (c []byte, e error)
- func LoadPrivateKeyPem(in io.Reader, password []byte) (p crypto.PrivateKey, e error)
- func StoreCertificate(out io.Writer, cert []byte) (err error)
- func StorePrivateKeyPem(out io.Writer, p crypto.PrivateKey, password []byte) (e error)
- type Attribute
- type CA
- type DB
Constants ¶
This section is empty.
Variables ¶
View Source
var CREATE_CA_CONFIG_TABLE = "" /* 144-byte string literal not displayed */
View Source
var DC = asn1.ObjectIdentifier{0, 9, 2342, 19200300, 100, 1, 25}
type description OID C countryName 2.5.4.6 CN commonName 2.5.4.3 DC domainComponent 0.9.2342.19200300.100.1.25 E emailAddress (deprecated) 1.2.840.113549.1.9.1 G or GN givenName 2.5.4.42 L localityName 2.5.4.7 O organizationName 2.5.4.10 OU organizationalUnit 2.5.4.11 SERIALNUMBER serialNumber 2.5.4.5 SN surname 2.5.4.4 ST or S stateOrProvinceName 2.5.4.8 STREET streetAddress 2.5.4.9 T or TITLE title 2.5.4.12 UID userID 0.9.2342.19200300.100.1.1
View Source
var EMAIL = asn1.ObjectIdentifier{1, 2, 840, 113549, 1, 9, 1}
View Source
var GN = asn1.ObjectIdentifier{2, 5, 4, 42}
View Source
var SN = asn1.ObjectIdentifier{2, 5, 4, 4}
View Source
var ST = asn1.ObjectIdentifier{2, 5, 4, 8}
View Source
var TITLE = asn1.ObjectIdentifier{2, 5, 4, 12}
View Source
var UID = asn1.ObjectIdentifier{0, 9, 2342, 19200300, 100, 1, 1}
Functions ¶
func ConvertDNToPKIXName ¶
TODO: Refactor the function
func LoadPrivateKeyPem ¶
func StorePrivateKeyPem ¶
Types ¶
type Attribute ¶
type Attribute struct {
// contains filtered or unexported fields
}
func ParseDistinguishedName ¶
<name> ::= <name-component> ( <spaced-separator> )
| <name-component> <spaced-separator> <name>
Click to show internal directories.
Click to hide internal directories.