Take a look at

http://stuff-things.net/2008/02/05/encrypting-lots-of-sensitive-data-with-ruby-on-rails/

for a little bit of info on the "padding check failed" error you're running
into (somewhere in the comments).

Actually, what system are you copying the keys from? Windows? (I believe you
mentioned that earlier.) You might need to correct the end-of-line
characters in that case:

sed "s/^M//" rsa_key > rsa_key.good
sed "s/^M//" rsa_key.pub >rsa_key.pub.good

(you need to do ctrl-v ctrl-m to get the "^M" character... it's not "^" and
"M" separately)

and then move the ".good" files to what they should be.

You can also just redirect the output directly on top of the same file but
doing the two-step doesn't hurt.

Long

On Fri, Jun 13, 2008 at 6:57 PM, Antony Evans <[EMAIL PROTECTED]> wrote:

>
> Long,
>
> Thanks for the reply.  This was indeed part of the problem as I was
> using the same database from a previous install.  I've now deleted all
> my databases (and the RSA key files), re-run rake install and then
> copied my local development database onto my remote server and copied
> across the two new RSA files into the root directory.  Then I
> restarted my mongrel action.  No errors whilst running rake, however
> I'm still getting the 'padding check failed' error.
>
> Are there other files I need to copy?
>
> Antony
> >
>


-- 
Long Nguyen
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
Insoshi developer site: http://dogfood.insoshi.com/
Insoshi documentation: http://docs.insoshi.com/

You received this message because you are subscribed to the Google
Groups "Insoshi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/insoshi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to