Re: [racket-users] How do I (de)serialize PKI keys for storage?

2018-12-18 Thread David Storrs
On Tue, Dec 18, 2018 at 7:03 PM Greg Hendershott wrote: > Maybe it is a limitation of libgcrypt? All three return #t for me when > using libcrypto: > > (require crypto crypto/libcrypto) > (crypto-factories libcrypto-factory) > > Although I don't know the pros and cons of each, it seems the >

Re: [racket-users] How do I (de)serialize PKI keys for storage?

2018-12-18 Thread David Storrs
Cool, thanks! You are, as always, fantastic. On Tue, Dec 18, 2018 at 7:47 PM Ryan Culpepper wrote: > On 12/18/18 23:36, David Storrs wrote: > > I'm trying to persist public/private keys to our database and having > > some trouble: > > > > > > Welcome to Racket v6.11. > > > (require crypto

Re: [racket-users] How do I (de)serialize PKI keys for storage?

2018-12-18 Thread Ryan Culpepper
On 12/18/18 23:36, David Storrs wrote: I'm trying to persist public/private keys to our database and having some trouble: Welcome to Racket v6.11. > (require crypto crypto/gcrypt) > (crypto-factories gcrypt-factory) > (define key (generate-private-key 'rsa)) > key (object:gcrypt-rsa-key%

Re: [racket-users] How do I (de)serialize PKI keys for storage?

2018-12-18 Thread Greg Hendershott
Maybe it is a limitation of libgcrypt? All three return #t for me when using libcrypto: (require crypto crypto/libcrypto) (crypto-factories libcrypto-factory) Although I don't know the pros and cons of each, it seems the libcrypto pros include this working, as well as it being installed by

[racket-users] How do I (de)serialize PKI keys for storage?

2018-12-18 Thread David Storrs
I'm trying to persist public/private keys to our database and having some trouble: Welcome to Racket v6.11. > (require crypto crypto/gcrypt) > (crypto-factories gcrypt-factory) > (define key (generate-private-key 'rsa)) > key (object:gcrypt-rsa-key% ...) > (define pub (pk-key->public-only-key