Forum: Ruby Creating an RSA public key from a modulus and exponent

3f09a4ab0b7c75fc7e45c7b75058e193?d=identicon&s=25 Rodney Carvalho (rcarvalho)
on 2007-11-02 02:21
I know how to create a new keypair using:

OpenSSL::PKey::RSA.new(1024)

But, I'm looking for how to create a public key when I have the modulus
and exponent value of that key.  Any help would be appreciated.

Thanks,

rodney
3f09a4ab0b7c75fc7e45c7b75058e193?d=identicon&s=25 Rodney Carvalho (rcarvalho)
on 2007-11-02 20:00
Rodney Carvalho wrote:
> I know how to create a new keypair using:
>
> OpenSSL::PKey::RSA.new(1024)
>
> But, I'm looking for how to create a public key when I have the modulus
> and exponent value of that key.  Any help would be appreciated.
>
> Thanks,
>
> rodney


OK, after many hours of playing I've answered my own question and posted
it on my blog.  Here you go:

http://blog.internautdesign.com/2007/11/2/ruby-ope...

-Rodney Carvalho
www.internautdesign.com
C4bfcc81ac9281cb905f38e97e4d4e0b?d=identicon&s=25 Shandy Nantz (snantz)
on 2007-12-11 22:23
Rodney Carvalho wrote:
>
>
> OK, after many hours of playing I've answered my own question and posted
> it on my blog.  Here you go:
>
> 
http://blog.internautdesign.com/2007/11/2/ruby-ope...
>
> -Rodney Carvalho
> www.internautdesign.com

How did you get them into that format though? I have been trying the
smae thing for the better part of a week and can't get them into the
correct format.

-S
3f09a4ab0b7c75fc7e45c7b75058e193?d=identicon&s=25 Rodney Carvalho (rcarvalho)
on 2007-12-12 00:52
response posted on blog.
2697e27a8941376f2058280304e42e93?d=identicon&s=25 Eyal Bukchin (eyalb181)
on 2016-10-26 11:22
Hi, blog seems to be down, any possibility of posting the solution
elsewhere? Thanks!
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.