util.openssl

Utility for dealing with OpenSSLs utilities and configuration format.

Calling openssl tools

Any of the various OpenSSL command line tools can be called using a syntax like this:

The above would be equivalent to running the following in a shell:

openssl req -new -x509 -out key.pem -subj /CN=example.com \
    -newkey rsa:2048 -keyout my.key

Producing a certificate template / config file

Other utilities

openssl.util contains two functions, ia5string() and utf8string() which annotates string for use in config files. This is transparently used by conf:add_xmppAddr() etc.