manpagez: man pages & more
info bigloo
Home | html | info | man
[ << ] [ < ] [ 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 invoke read-pem-key-file (and not read-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 to write-pem-key-file.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on March 31, 2014 using texi2html 5.0.

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.