Documentation ¶
Index ¶
- Variables
- func LookupOID(oid asn1.ObjectIdentifier) string
- func ReprData(dat []byte, tabs, width int) string
- type ExtKeyUsage
- type KeyUsage
- func (ku KeyUsage) CRLSign() bool
- func (ku KeyUsage) ContentCommitment() bool
- func (ku KeyUsage) DataEncipherment() bool
- func (ku KeyUsage) DecipherOnly() bool
- func (ku KeyUsage) DigitalSignature() bool
- func (ku KeyUsage) EncipherOnly() bool
- func (ku KeyUsage) KeyAgreement() bool
- func (ku KeyUsage) KeyCertSign() bool
- func (ku KeyUsage) KeyEncipherment() bool
- func (ku KeyUsage) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OIDSubjectKeyId asn1.ObjectIdentifier = []int{2, 5, 29, 14} OIDKeyUsage asn1.ObjectIdentifier = []int{2, 5, 29, 15} OIDExtendedKeyUsage asn1.ObjectIdentifier = []int{2, 5, 29, 37} OIDAuthorityKeyId asn1.ObjectIdentifier = []int{2, 5, 29, 35} OIDBasicConstraints asn1.ObjectIdentifier = []int{2, 5, 29, 19} OIDSubjectAltName asn1.ObjectIdentifier = []int{2, 5, 29, 17} OIDCertificatePolicies asn1.ObjectIdentifier = []int{2, 5, 29, 32} OIDNameConstraints asn1.ObjectIdentifier = []int{2, 5, 29, 30} OIDCRLDistributionPoints asn1.ObjectIdentifier = []int{2, 5, 29, 31} OIDAuthorityInfoAccess asn1.ObjectIdentifier = []int{1, 3, 6, 1, 5, 5, 7, 1, 1} OIDCRLNumber asn1.ObjectIdentifier = []int{2, 5, 29, 20} OIDEmailAddress asn1.ObjectIdentifier = []int{1, 2, 840, 113549, 1, 9, 1} )
View Source
var ( OIDAppleCertificatePolicy asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 5, 1} // LeafCertificate OIDIosDeveloperLeaf asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 1, 2} OIDIosAppStoreApplicationLeaf asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 1, 3} OIDIosDistributionLeaf asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 1, 4} OIDIosAppStoreVpnApplicationLeaf asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 1, 6} OID3rdPartyMacDeveloperApplicationLeaf asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 1, 7} OID3rdPartyMacDeveloperInstallerLeaf asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 1, 8} OIDMacAppStoreApplicationLeaf asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 1, 9} OIDMacAppStoreInstallerLeaf asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 1, 10} OIDMacAppStoreReceiptLeaf asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 1, 11} OIDMacOsDevelopmentLeaf asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 1, 12} OIDDeveloperIdApplicationLeaf asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 1, 13} OIDDeveloperIdInstallerLeaf asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 1, 14} OIDDeveloperIdKernelExtensionLeaf asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 1, 18} OIDTestFlightLeaf asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 1, 25, 1} OIDInternalReleaseLeaf asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 1, 25, 2} OIDDeveloperIdTicketLeaf asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 1, 30} OIDAppleSoftwareSigningLeaf asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 22} OIDDeveloperIDDate asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 1, 33} // Intermediate CA OIDWorldwideDeveloperRelationsWdrIntermediateCA asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 2, 1} OIDDeveloperIdIntermediateCA asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 2, 6} // OIDCodeSigningEKU asn1.ObjectIdentifier = []int{1, 3, 6, 1, 5, 5, 7, 3, 3} OIDSafariDeveloperEKU asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 4, 8} OID3rdPartyMacDeveloperInstallerEKU asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 4, 9} OIDDeveloperIDInstallerEKU asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 4, 13} // APSWAuthCapabilities OIDGeneralCapabilities asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 59, 1} OIDAirPlayCapabilities asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 59, 2} OIDHomeKitCapabilities asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 59, 3} // AuthVersion OIDAuthVersion3 asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 36} // v3 Capabilities Extension OIDAuthVersionSW asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 59, 1} // SW Auth General Capabilities Extension OIDAuthVersion4 asn1.ObjectIdentifier = []int{1, 2, 840, 113635, 100, 6, 71, 1} // v4 Properties extension )
Functions ¶
func LookupOID ¶
func LookupOID(oid asn1.ObjectIdentifier) string
Types ¶
type ExtKeyUsage ¶
type ExtKeyUsage int
const ( ExtKeyUsageAny ExtKeyUsage = iota ExtKeyUsageServerAuth ExtKeyUsageClientAuth ExtKeyUsageCodeSigning ExtKeyUsageEmailProtection ExtKeyUsageIPSECEndSystem ExtKeyUsageIPSECTunnel ExtKeyUsageIPSECUser ExtKeyUsageTimeStamping ExtKeyUsageOCSPSigning ExtKeyUsageMicrosoftServerGatedCrypto ExtKeyUsageNetscapeServerGatedCrypto ExtKeyUsageMicrosoftCommercialCodeSigning ExtKeyUsageMicrosoftKernelCodeSigning )
func (ExtKeyUsage) String ¶
func (ku ExtKeyUsage) String() string
type KeyUsage ¶
type KeyUsage int
func (KeyUsage) ContentCommitment ¶
func (KeyUsage) DataEncipherment ¶
func (KeyUsage) DecipherOnly ¶
func (KeyUsage) DigitalSignature ¶
func (KeyUsage) EncipherOnly ¶
func (KeyUsage) KeyAgreement ¶
func (KeyUsage) KeyCertSign ¶
func (KeyUsage) KeyEncipherment ¶
Click to show internal directories.
Click to hide internal directories.