HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleHsOpenSSL-0.11.7.10Haskell2010

OpenSSL.X509

An interface to X.509 certificate.

  • 2 types
  • 27 values
  • PackageHsOpenSSL-0.11.7.10
  • 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.