 | certificate-0.3.2: Certificates and Key Reader/Writer | Contents | Index |
|
Data.Certificate.X509 | Portability | unknown | Stability | experimental | Maintainer | Vincent Hanquez <vincent@snarc.org> |
|
|
|
|
|
Description |
Read/Write X509 certificate
|
|
Synopsis |
|
|
|
|
Data Structure
|
|
data PubKeyDesc |
Constructors | PubKeyRSA (Int, Integer, Integer) | RSA format with (len modulus, modulus, e)
| PubKeyDSA (Integer, Integer, Integer, Integer) | DSA format with (pub, p, q, g)
| PubKeyUnknown [Word8] | unrecognized format
|
| Instances | |
|
|
data PubKey |
Constructors | | Instances | |
|
|
data CertificateDN |
Constructors | CertificateDN | | cdnCommonName :: Maybe String | Certificate DN Common Name
| cdnCountry :: Maybe String | Certificate DN Country of Issuance
| cdnOrganization :: Maybe String | Certificate DN Organization
| cdnOrganizationUnit :: Maybe String | Certificate DN Organization Unit
| cdnOthers :: [(OID, String)] | Certificate DN Other Attributes
|
|
| Instances | |
|
|
data Certificate |
Constructors | Certificate | | certVersion :: Int | Certificate Version
| certSerial :: Integer | Certificate Serial number
| certSignatureAlg :: SignatureALG | Certificate Signature algorithm
| certIssuerDN :: CertificateDN | Certificate Issuer DN
| certSubjectDN :: CertificateDN | Certificate Subject DN
| certValidity :: (Time, Time) | Certificate Validity period
| certPubKey :: PubKey | Certificate Public key
| certExtensions :: Maybe CertificateExts | Certificate Extensions
| certSignature :: Maybe (SignatureALG, [Word8]) | Certificate Signature Algorithm and Signature
| certOthers :: [ASN1] | any others fields not parsed
|
|
| Instances | |
|
|
serialization from ASN1 bytestring
|
|
decodeCertificate :: ByteString -> Either String Certificate |
decode a X509 certificate from a bytestring
|
|
encodeCertificate :: Certificate -> ByteString |
encode a X509 certificate to a bytestring
|
|
Produced by Haddock version 2.7.2 |