
Hi -cafe, I'm using the OpenSSL package, and I don't see any way to forge my own keys. (http://hackage.haskell.org/packages/archive/HsOpenSSL/0.9/doc/html/OpenSSL-R...) For example, in the case of RSA, I'm given the exponent and modulus and I would like to create a public key from that, of type RSAPubKey. Is it possible ? How should I do? I'm not particularly tied to OpenSSL, anything that let me use RSA and DSA would be fine. Regards, -- Cp

I am CCing the maintainer of the package, in case they know of any
good resources for using HsOpenSSL.
It sounds like the package is a wrapper around the OpenSSL library.
Have you checked any OpenSSL tutorials? It is often easy enough to
transfer that sort of knowledge to the equivalent Haskell library,
depending on how the Haskell library was written.
I don't have any real experience to offer, though.
Take care,
Antoine
On Sat, Jan 1, 2011 at 4:49 PM, Charles-Pierre Astolfi
Hi -cafe,
I'm using the OpenSSL package, and I don't see any way to forge my own keys. (http://hackage.haskell.org/packages/archive/HsOpenSSL/0.9/doc/html/OpenSSL-R...) For example, in the case of RSA, I'm given the exponent and modulus and I would like to create a public key from that, of type RSAPubKey. Is it possible ? How should I do?
I'm not particularly tied to OpenSSL, anything that let me use RSA and DSA would be fine.
Regards, -- Cp
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

I don't believe that HsOpenSSL offers support for creating your own
SSL keys programmatically from Haskell. Do you actually need to
generate keys programmatically? If not, you could manually use
OpenSSL's command line tools; if your needs are simple enough it
shouldn't be too hard to spawn a subprocess to generate the keys.
Best,
Leon
On Sat, Jan 1, 2011 at 5:49 PM, Charles-Pierre Astolfi
Hi -cafe,
I'm using the OpenSSL package, and I don't see any way to forge my own keys. (http://hackage.haskell.org/packages/archive/HsOpenSSL/0.9/doc/html/OpenSSL-R...) For example, in the case of RSA, I'm given the exponent and modulus and I would like to create a public key from that, of type RSAPubKey. Is it possible ? How should I do?
I'm not particularly tied to OpenSSL, anything that let me use RSA and DSA would be fine.
Regards, -- Cp
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (3)
-
Antoine Latter
-
Charles-Pierre Astolfi
-
Leon Smith