Safe Haskell | Safe-Infered |
---|
Data.Certificate.X509.Cert
- data SignatureALG
- data HashALG
- = HashMD2
- | HashMD5
- | HashSHA1
- | HashSHA224
- | HashSHA256
- | HashSHA384
- | HashSHA512
- data PubKeyALG
- = PubKeyALG_RSA
- | PubKeyALG_DSA
- | PubKeyALG_ECDSA
- | PubKeyALG_DH
- | PubKeyALG_Unknown OID
- data PubKey
- data ASN1StringType
- type ASN1String = (ASN1StringType, String)
- data Certificate = Certificate {
- certVersion :: Int
- certSerial :: Integer
- certSignatureAlg :: SignatureALG
- certIssuerDN :: [(OID, ASN1String)]
- certSubjectDN :: [(OID, ASN1String)]
- certValidity :: (Time, Time)
- certPubKey :: PubKey
- certExtensions :: Maybe [ExtensionRaw]
- oidCommonName, oidOrganizationUnit, oidOrganization, oidCountry :: OID
- oidSig :: OID -> SignatureALG
- sigOID :: SignatureALG -> OID
- parseCertificate :: ParseASN1 Certificate
- encodeCertificateHeader :: Certificate -> [ASN1]
- module Data.Certificate.X509.Ext
Data Structure
data HashALG
Constructors
HashMD2 | |
HashMD5 | |
HashSHA1 | |
HashSHA224 | |
HashSHA256 | |
HashSHA384 | |
HashSHA512 |
data PubKeyALG
Constructors
PubKeyALG_RSA | |
PubKeyALG_DSA | |
PubKeyALG_ECDSA | |
PubKeyALG_DH | |
PubKeyALG_Unknown OID |
data PubKey
data ASN1StringType
Instances
type ASN1String = (ASN1StringType, String)
data Certificate
Constructors
Certificate | |
Fields
|
Instances
oidSig :: OID -> SignatureALG
sigOID :: SignatureALG -> OID
certificate to/from asn1
parseCertificate :: ParseASN1 Certificate
parse header structure of a x509 certificate. the structure the following: Version Serial Number Algorithm ID Issuer Validity Not Before Not After Subject Subject Public Key Info Public Key Algorithm Subject Public Key Issuer Unique Identifier (Optional) (>= 2) Subject Unique Identifier (Optional) (>= 2) Extensions (Optional) (>= v3)
encodeCertificateHeader :: Certificate -> [ASN1]
extensions
module Data.Certificate.X509.Ext