Hoogle Search

Within LTS Haskell 24.52 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. writeX509Req :: X509Req -> PemX509ReqFormat -> IO String

    HsOpenSSL OpenSSL.PEM

    writeX509Req writes a PKCS#10 certificate request to PEM string.

  2. module OpenSSL.X509.Request

    An interface to PKCS#10 certificate request.

  3. data X509Req

    HsOpenSSL OpenSSL.X509.Request

    X509Req is an opaque object that represents PKCS#10 certificate request.

  4. makeX509FromReq :: X509Req -> X509 -> IO X509

    HsOpenSSL OpenSSL.X509.Request

    makeX509FromReq req cert creates an empty X.509 certificate and copies as much data from the request as possible. The resulting certificate doesn't have the following data and it isn't signed so you must fill them and sign it yourself.

    • Serial number
    • Validity (Not Before and Not After)
    Example:
    import Data.Time.Clock
    
    genCert :: X509 -> EvpPKey -> Integer -> Int -> X509Req -> IO X509
    genCert caCert caKey serial days req
    = do cert <- makeX509FromReq req caCert
    now  <- getCurrentTime
    setSerialNumber cert serial
    setNotBefore cert $ addUTCTime (-1) now
    setNotAfter  cert $ addUTCTime (days * 24 * 60 * 60) now
    signX509 cert caKey Nothing
    return cert
    

  5. newX509Req :: IO X509Req

    HsOpenSSL OpenSSL.X509.Request

    newX509Req creates an empty certificate request. You must set the following properties to and sign it (see signX509Req) to actually use the certificate request.

  6. printX509Req :: X509Req -> IO String

    HsOpenSSL OpenSSL.X509.Request

    printX509Req req translates a certificate request into human-readable format.

  7. signX509Req :: KeyPair key => X509Req -> key -> Maybe Digest -> IO ()

    HsOpenSSL OpenSSL.X509.Request

    signX509Req signs a certificate request with a subject private key.

  8. verifyX509Req :: PublicKey key => X509Req -> key -> IO VerifyStatus

    HsOpenSSL OpenSSL.X509.Request

    verifyX509Req verifies a signature of certificate request with a subject public key.

  9. writeX509ReqDER :: X509Req -> IO ByteString

    HsOpenSSL OpenSSL.X509.Request

    writeX509ReqDER req writes a PKCS#10 certificate request to DER string.

  10. httpEquiv_ :: Text -> Attribute

    lucid Lucid.Html5

    The httpEquiv attribute.

Page 282 of many | Previous | Next