hsgnutls-0.2.3.2: Library wrapping the GnuTLS API.

Network.GnuTLS.X509

Contents

Synopsis

Types

Certificate Functions

importCertificate :: Datum d => d -> X509CertificateFormat -> GnuTLSMonad CertificateSource

Import an encoded certificate to the native format.

verifySignature :: (Datum dat, Datum sign) => Certificate -> dat -> sign -> GnuTLSMonad BoolSource

getDnByOidSource

Arguments

:: 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.

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.