-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Certificate and Key Reader/Writer -- -- Certificate and Key reader/writer @package certificate @version 0.1 -- | Read/Write Private Key module Data.Certificate.Key data PrivateKey PrivateKey :: Int -> Int -> Integer -> Integer -> Integer -> Integer -> Integer -> Integer -> Integer -> Int -> PrivateKey privKey_version :: PrivateKey -> Int privKey_lenmodulus :: PrivateKey -> Int privKey_modulus :: PrivateKey -> Integer privKey_public_exponant :: PrivateKey -> Integer privKey_private_exponant :: PrivateKey -> Integer privKey_p1 :: PrivateKey -> Integer privKey_p2 :: PrivateKey -> Integer privKey_exp1 :: PrivateKey -> Integer privKey_exp2 :: PrivateKey -> Integer privKey_coef :: PrivateKey -> Int decodePrivateKey :: ByteString -> Either String PrivateKey encodePrivateKey :: PrivateKey -> ByteString -- | Read PEM files module Data.Certificate.PEM -- | parse a PEM content that is delimited by the begin string and the end -- string, and returns the base64-decoded bytestring on success or a -- string on error. parsePEM :: ByteString -> ByteString -> ByteString -> Either String ByteString parsePEMCert :: ByteString -> Either String ByteString parsePEMKey :: ByteString -> Either String ByteString -- | Read/Write X509 certificate module Data.Certificate.X509 data PubKeyDesc PubKeyRSA :: (Int, Integer, Integer) -> PubKeyDesc PubKeyDSA :: (ByteString, Integer, Integer, Integer) -> PubKeyDesc PubKeyUnknown :: [Word8] -> PubKeyDesc data PubKey PubKey :: SignatureALG -> PubKeyDesc -> PubKey data CertificateDN CertificateDN :: Maybe String -> Maybe String -> Maybe String -> Maybe String -> [(OID, String)] -> CertificateDN cdnCommonName :: CertificateDN -> Maybe String cdnCountry :: CertificateDN -> Maybe String cdnOrganization :: CertificateDN -> Maybe String cdnOrganizationUnit :: CertificateDN -> Maybe String cdnOthers :: CertificateDN -> [(OID, String)] data Certificate Certificate :: Int -> Integer -> SignatureALG -> CertificateDN -> CertificateDN -> (Time, Time) -> PubKey -> Maybe [ASN1] -> Maybe (SignatureALG, [Word8]) -> [ASN1] -> Certificate certVersion :: Certificate -> Int certSerial :: Certificate -> Integer certSignatureAlg :: Certificate -> SignatureALG certIssuerDN :: Certificate -> CertificateDN certSubjectDN :: Certificate -> CertificateDN certValidity :: Certificate -> (Time, Time) certPubKey :: Certificate -> PubKey certExtensions :: Certificate -> Maybe [ASN1] certSignature :: Certificate -> Maybe (SignatureALG, [Word8]) certOthers :: Certificate -> [ASN1] decodeCertificate :: ByteString -> Either String Certificate encodeCertificate :: Certificate -> ByteString instance Monad ParseCert instance MonadError String ParseCert instance Show Certificate instance Show CertificateDN instance Show PubKey instance Show PubKeyDesc instance Show SignatureALG instance Eq SignatureALG