[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
15.2.4 PEM
Bigloo is able to read and write RSA and DSA keys in PEM format. This is the default format used by OpenSSL.
The following example creates a new DSA key pair in OpenSSL and stores it in PEM format.
$ openssl dsaparam 1024 -out /tmp/dsaparam $ openssl gendsa /tmp/dsaparam
- Bigloo Cryptography procedure: read-pem-key in
- Bigloo Cryptography procedure: read-pem-key-port input-port
- Bigloo Cryptography procedure: read-pem-key-file filename
- Bigloo Cryptography procedure: read-pem-key-string str
These functions will read a PEM encoded key. The encoded file may contain a private or public RSA key, or a private or public DSA key.
The procedure
read-pem-key
accepts input-ports and strings. In the case of a string it will invokeread-pem-key-file
(and notread-pem-key-string
).
- Bigloo Cryptography procedure: write-pem-key key out [public-key-only?]
- Bigloo Cryptography procedure: write-pem-key-port key out [public-key-only?]
- Bigloo Cryptography procedure: write-pem-key-file key out [public-key-only?]
- Bigloo Cryptography procedure: write-pem-key-string key [public-key-only?]
These functions write the given key. The key may be a private/public RSA/DSA key.
The procedure
write-pem-key
accepts output-ports and strings as out parameter. If out is a string it will delegate towrite-pem-key-file
.
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on October 23, 2011 using texi2html 5.0.