PemPasswordCallback represents a callback function to supply a
password.
IntThe maximum length of the password to be accepted.
PemPasswordRWStateThe context.
IO StringThe resulting password.
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
ModuleHsOpenSSL-0.11.7.10Haskell2010
An interface to PEM routines.
PemPasswordCallback represents a callback function to supply a
password.
IntThe maximum length of the password to be accepted.
PemPasswordRWStateThe context.
IO StringThe resulting password.
PemPasswordRWState represents a context of
PemPasswordCallback.
PemPasswordSupply represents a way to supply password.
FIXME: using PwTTY causes an error but I don't know why: "error:0906406D:PEM routines:DEF_CALLBACK:problems getting password"
PwNoneno password
PwStr Stringpassword in a static string
PwBS ByteStringpassword in a static bytestring.
PwCallback PemPasswordCallbackget a password by a callback
PwTTYread a password from TTY
writePKCS8PrivateKey writePKCS8PrivateKey writes a private key to PEM string in
PKCS#8 format.
readPrivateKey pem supply reads a private key in PEM string.
writePublicKey pubkey writes a public to PEM string.
readPublicKey pem reads a public key in PEM string.
writeX509 cert writes an X.509 certificate to PEM string.
readX509 pem reads an X.509 certificate in PEM string.
PemX509ReqFormat represents format of PKCS#10 certificate
request.
ReqNewFormatThe new format, whose header is "NEW CERTIFICATE REQUEST".
ReqOldFormatThe old format, whose header is "CERTIFICATE REQUEST".
writeX509Req writes a PKCS#10 certificate request to PEM
string.
readX509Req reads a PKCS#10 certificate request in PEM string.
writeCRL crl writes a Certificate Revocation List to PEM
string.
readCRL pem reads a Certificate Revocation List in PEM string.
writePkcs7 p7 writes a PKCS#7 structure to PEM string.
readPkcs7 pem reads a PKCS#7 structure in PEM string.
writeDHParams dh writes DH parameters to PEM string.
readDHParams pem reads DH parameters in PEM string.