- data Certificate
- data PrivateKey
- importCertificate :: Datum d => d -> X509CertificateFormat -> GnuTLSMonad Certificate
- importPrivateKey :: Datum d => d -> X509CertificateFormat -> GnuTLSMonad PrivateKey
- exportCertificate :: Certificate -> X509CertificateFormat -> GnuTLSMonad ByteString
- exportPrivateKey :: PrivateKey -> X509CertificateFormat -> GnuTLSMonad ByteString
- verifySignature :: (Datum dat, Datum sign) => Certificate -> dat -> sign -> GnuTLSMonad Bool
- signData :: Datum d => PrivateKey -> DigestAlgorithm -> d -> GnuTLSMonad ByteString
- certificateRSAParameters :: Certificate -> GnuTLSMonad (ByteString, ByteString)
- privateKeyRSAParameters :: PrivateKey -> GnuTLSMonad (ByteString, ByteString, ByteString, ByteString, ByteString, ByteString)
- privateKeyGetKeyId :: PrivateKey -> GnuTLSMonad ByteString
- certificateGetKeyId :: Certificate -> GnuTLSMonad ByteString
- getIssuerDnByOid :: Certificate -> OID -> Int -> GnuTLSMonad (Maybe ByteString)
- getDnByOid :: Certificate -> OID -> Int -> GnuTLSMonad (Maybe ByteString)
- getExtensionByOid :: Certificate -> OID -> Int -> GnuTLSMonad (Maybe (ByteString, Bool))
- checkHostname :: Certificate -> String -> GnuTLSMonad Bool
- checkIssuer :: Certificate -> Certificate -> GnuTLSMonad Bool
Types
Certificate Functions
importCertificate :: Datum d => d -> X509CertificateFormat -> GnuTLSMonad CertificateSource
Import an encoded certificate to the native format.
importPrivateKey :: Datum d => d -> X509CertificateFormat -> GnuTLSMonad PrivateKeySource
verifySignature :: (Datum dat, Datum sign) => Certificate -> dat -> sign -> GnuTLSMonad BoolSource
signData :: Datum d => PrivateKey -> DigestAlgorithm -> d -> GnuTLSMonad ByteStringSource
privateKeyRSAParameters :: PrivateKey -> GnuTLSMonad (ByteString, ByteString, ByteString, ByteString, ByteString, ByteString)Source
getIssuerDnByOid :: Certificate -> OID -> Int -> GnuTLSMonad (Maybe ByteString)Source
:: Certificate | Certificate to retrieve the field-data from |
-> OID | The field name, specified by an Object Indentifier |
-> Int | If there's more than one entry, this will be used to describe which one to use(0 gives the first entry) |
-> GnuTLSMonad (Maybe ByteString) |
Retrieves a field by it's Object Identifier.
getExtensionByOid :: Certificate -> OID -> Int -> GnuTLSMonad (Maybe (ByteString, Bool))Source
checkHostname :: Certificate -> String -> GnuTLSMonad BoolSource
Check whether the certicate hostname matches the given name.
checkIssuer :: Certificate -> Certificate -> GnuTLSMonad BoolSource
Check if the second certificate issued the first one.