HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

ModuleHsOpenSSL-0.11.7.11Haskell2010

OpenSSL.X509

An interface to X.509 certificate.

  • 2 types
  • 27 values
  • PackageHsOpenSSL-0.11.7.11
  • Exports29
  • LanguageHaskell2010
  • LicenceLicenseRef-PublicDomain
  • SourceX509.hsc

Type

2 declarations

Functions to manipulate certificate

12 declarations
valuesignX509
  1. :: KeyPair key
  2. => X509

    The certificate to be signed.

  3. -> key

    The private key to sign with.

  4. -> Maybe Digest

    A hashing algorithm to use. If Nothing the most suitable algorithm for the key is automatically used.

  5. -> IO ()
#

signX509 signs a certificate with an issuer private key.

Accessors

15 declarations
valuegetVersion :: X509 -> IO Int
#

getVersion cert returns the version number of certificate. It seems the number is 0-origin: version 2 means X.509 v3.

valuegetIssuerName
  1. :: X509

    The certificate to examine.

  2. -> Bool

    True if you want the keys of each parts to be of long form (e.g. "commonName"), or False if you don't (e.g. "CN").

  3. -> IO [(String, String)]

    Pairs of key and value, for example (\"C\", \"JP\"), (\"ST\", \"Some-State\"), ....

#

getIssuerName returns the issuer name of certificate.