[racket] Example of using OpenSSL instead of mzcrypto

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Tue Apr 24 13:21:15 EDT 2012

One comment here: you really want to be sure that you close all three
of the ports that process returns, or else you'll run into problems if
you use this in a larger context.


On Tue, Apr 24, 2012 at 12:14 PM, Galler <lzgaller at optonline.net> wrote:
> Neil V. mentioned his preference for directly calling the OpenSSL
> libraries vs. using  mzcrypto (planet vyzo/crypto)
> I wanted to provide a small example using this technique for
> generating and retrieving a 1024 bit unencrypted private key in
> PEM format.
> (define res (process "openssl genrsa 1024"))
> (port->string (first res))
> ;;returns
> ......[the key].....
> -----END RSA PRIVATE KEY-----\n"
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users

Posted on the users mailing list.