| Safe Haskell | None |
|---|
Data.Certificate.X509.Cert
- data SignatureALG
- data HashALG
- = HashMD2
- | HashMD5
- | HashSHA1
- | HashSHA224
- | HashSHA256
- | HashSHA384
- | HashSHA512
- 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 SignatureALG Source
Constructors
| SignatureALG HashALG PubKeyALG | |
| SignatureALG_Unknown OID |
Instances
Constructors
| HashMD2 | |
| HashMD5 | |
| HashSHA1 | |
| HashSHA224 | |
| HashSHA256 | |
| HashSHA384 | |
| HashSHA512 |
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 Source
type ASN1String = (ASN1StringType, String)Source
data Certificate Source
Constructors
| Certificate | |
Fields
| |
Instances
newtype DistinguishedName Source
Constructors
| DistinguishedName | |
Fields
| |
oidSig :: OID -> SignatureALGSource
sigOID :: SignatureALG -> OIDSource
Parse and encode a single distinguished name
encodeDNinner :: (ASN1String -> ASN1String) -> DistinguishedName -> [ASN1]Source
encodeDN :: DistinguishedName -> [ASN1]Source
extensions
module Data.Certificate.X509.Ext