|
|
|
|
|
| Description |
| An interface to PEM routines.
|
|
| Synopsis |
|
|
|
|
| Password supply
|
|
|
PemPasswordCallback represents a callback function to supply a
password.
- Int
- The maximum length of the password to be accepted.
- PemPasswordRWState
- The context.
- IO String
- The resulting password.
|
|
| data PemPasswordRWState | Source |
|
| PemPasswordRWState represents a context of
PemPasswordCallback.
| | Constructors | | PwRead | The callback was called to get
a password to read something
encrypted.
| | PwWrite | The callback was called to get
a password to encrypt
something.
|
|
|
|
|
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"
| | Constructors | | PwNone | no password
| | PwStr String | password in a static string
| | PwCallback PemPasswordCallback | get a
password
by a
callback
| | PwTTY | read a password from TTY
|
|
|
|
| Private key
|
|
|
|
|
|
| readPrivateKey pem supply reads a private key in PEM string.
|
|
| Public key
|
|
|
| writePublicKey pubkey writes a public to PEM string.
|
|
|
| readPublicKey pem reads a public key in PEM string.
|
|
| X.509 certificate
|
|
|
| writeX509 cert writes an X.509 certificate to PEM string.
|
|
|
| readX509 pem reads an X.509 certificate in PEM string.
|
|
| PKCS#10 certificate request
|
|
|
| PemX509ReqFormat represents format of PKCS#10 certificate
request.
| | Constructors | | ReqNewFormat | The new format, whose header is "NEW
CERTIFICATE REQUEST".
| | ReqOldFormat | The old format, whose header is "CERTIFICATE
REQUEST".
|
|
|
|
|
|
|
|
| readX509Req reads a PKCS#10 certificate request in PEM string.
|
|
| Certificate Revocation List
|
|
|
| writeCRL crl writes a Certificate Revocation List to PEM
string.
|
|
|
| readCRL pem reads a Certificate Revocation List in PEM string.
|
|
| PKCS#7 structure
|
|
|
| writePkcs7 p7 writes a PKCS#7 structure to PEM string.
|
|
|
| readPkcs7 pem reads a PKCS#7 structure in PEM string.
|
|
| Produced by Haddock version 2.4.2 |