Portability | unknown |
---|---|
Stability | experimental |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Read/Write X509 certificate
- data PubKeyDesc
- data PubKey = PubKey SignatureALG PubKeyDesc
- data CertificateDN = CertificateDN {
- cdnCommonName :: Maybe String
- cdnCountry :: Maybe String
- cdnOrganization :: Maybe String
- cdnOrganizationUnit :: Maybe String
- cdnOthers :: [(OID, String)]
- data Certificate = Certificate {
- certVersion :: Int
- certSerial :: Integer
- certSignatureAlg :: SignatureALG
- certIssuerDN :: CertificateDN
- certSubjectDN :: CertificateDN
- certValidity :: (Time, Time)
- certPubKey :: PubKey
- certExtensions :: Maybe CertificateExts
- certSignature :: Maybe (SignatureALG, [Word8])
- certOthers :: [ASN1]
- decodeCertificate :: ByteString -> Either String Certificate
- encodeCertificate :: Certificate -> ByteString
Data Structure
data PubKeyDesc Source
data CertificateDN Source
CertificateDN | |
|
data Certificate Source
Certificate | |
|
serialization from ASN1 bytestring
decodeCertificate :: ByteString -> Either String CertificateSource
decode a X509 certificate from a bytestring
encodeCertificate :: Certificate -> ByteStringSource
encode a X509 certificate to a bytestring