Hi,

Well, I have nt thought about the fact that there might be a special
group for ruby openssl lib. Sorry for that.

Just to explain my decision to post this to a ruby group...
If I would have a pem file I would do the following in ruby:
public_key = OpenSSL::PKey::RSA.new(File.new(pem_file))
encrypted_string = Base64.encode64(public_key.public_encrypt(string))

Maybe somebody can point me to a more appropriate group ?

Thanks a lot in advance.

--
Volker




On 15 Jan., 03:12, Marnen Laibow-Koser <mar... / marnen.org> wrote:
> MrBana... / googlemail.com wrote:
> > Hi all,
>
> > I have to talk to a third party system in one of my applications.
>
> > The login message has to be encrypted with their public key.
> > However, in their documentation they only present me the key and not a
> > pem file:
> > Does anybody know how I may configure OPENSSL if I only have the
> > public key ?
>
> > Key from their documentation:
> > 480152500100000081009CA3D65EAC3318178F31667C3C5E60EE26DD6B090B2671928F8D461B598731AE931A2C8D02B593189DCDF17C591634DE10657AA9957CB6D9952B9040C96536F96A4BFDF0F97703893EF8D52AA91762B85D010AFCE4C3E6CB0338559DECA54D774A6640CB57B8F169B96ED223000FC950254646FA8AD7AA4361D1BCAE9694477D00000003010001
>
> > Thanks a lot in advance.
>
> What does this have to do with Ruby?
>
> Best,
> --
> Marnen Laibow-Koserhttp://www.marnen.org
> mar... / marnen.org
> --
> Posted viahttp://www.ruby-forum.com/.