Safe Haskell | None |
---|---|
Language | Haskell98 |
Data.Certificate.X509.Cert
- data SignatureALG
- data HashALG
- data PubKeyALG
- data PubKey
- = PubKeyRSA PublicKey
- | PubKeyDSA PublicKey
- | PubKeyDH (Integer, Integer, Integer, Maybe Integer, ([Word8], Integer))
- | PubKeyECDSA ECDSA_Hash ByteString
- | PubKeyUnknown OID [Word8]
- data ECDSA_Hash = ECDSA_Hash_SHA384
- data ASN1StringType
- type ASN1String = (ASN1StringType, String)
- data Certificate = Certificate {
- certVersion :: Int
- certSerial :: Integer
- certSignatureAlg :: SignatureALG
- certIssuerDN :: DistinguishedName
- certSubjectDN :: DistinguishedName
- certValidity :: (Time, Time)
- certPubKey :: PubKey
- certExtensions :: Maybe [ExtensionRaw]
- newtype DistinguishedName = DistinguishedName {
- getDistinguishedElements :: [(OID, ASN1String)]
- type OID = [Integer]
- oidCommonName :: OID
- oidCountry :: OID
- oidOrganization :: OID
- oidOrganizationUnit :: OID
- oidSig :: OID -> SignatureALG
- sigOID :: SignatureALG -> OID
- parseDN :: ParseASN1 DistinguishedName
- encodeDNinner :: (ASN1String -> ASN1String) -> DistinguishedName -> [ASN1]
- encodeDN :: DistinguishedName -> [ASN1]
- module Data.Certificate.X509.Ext
Data Structure
data HashALG
Constructors
HashMD2 | |
HashMD5 | |
HashSHA1 | |
HashSHA224 | |
HashSHA256 | |
HashSHA384 | |
HashSHA512 |
data PubKeyALG
data PubKey
Constructors
PubKeyRSA PublicKey | RSA public key |
PubKeyDSA PublicKey | DSA public key |
PubKeyDH (Integer, Integer, Integer, Maybe Integer, ([Word8], Integer)) | DH format with (p,g,q,j,(seed,pgenCounter)) |
PubKeyECDSA ECDSA_Hash ByteString | ECDSA format not done yet FIXME |
PubKeyUnknown OID [Word8] | unrecognized format |
data ASN1StringType
type ASN1String = (ASN1StringType, String)
data Certificate
Constructors
Certificate | |
Fields
|
Instances
newtype DistinguishedName
Constructors
DistinguishedName | |
Fields
|
oidCommonName :: OID
oidCountry :: OID
oidSig :: OID -> SignatureALG
sigOID :: SignatureALG -> OID
Parse and encode a single distinguished name
encodeDNinner :: (ASN1String -> ASN1String) -> DistinguishedName -> [ASN1]
encodeDN :: DistinguishedName -> [ASN1]
extensions
module Data.Certificate.X509.Ext