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.
writeX509Req :: X509Req -> PemX509ReqFormat -> IO StringHsOpenSSL OpenSSL.PEM writeX509Req writes a PKCS#10 certificate request to PEM string.
-
An interface to PKCS#10 certificate request.
-
HsOpenSSL OpenSSL.X509.Request X509Req is an opaque object that represents PKCS#10 certificate request.
makeX509FromReq :: X509Req -> X509 -> IO X509HsOpenSSL 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)
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
-
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.
- Version See setVersion.
- Subject Name See setSubjectName.
- Public Key See setPublicKey.
printX509Req :: X509Req -> IO StringHsOpenSSL OpenSSL.X509.Request printX509Req req translates a certificate request into human-readable format.
signX509Req :: KeyPair key => X509Req -> key -> Maybe Digest -> IO ()HsOpenSSL OpenSSL.X509.Request signX509Req signs a certificate request with a subject private key.
verifyX509Req :: PublicKey key => X509Req -> key -> IO VerifyStatusHsOpenSSL OpenSSL.X509.Request verifyX509Req verifies a signature of certificate request with a subject public key.
writeX509ReqDER :: X509Req -> IO ByteStringHsOpenSSL OpenSSL.X509.Request writeX509ReqDER req writes a PKCS#10 certificate request to DER string.
httpEquiv_ :: Text -> Attributelucid Lucid.Html5 The httpEquiv attribute.