GPG - Any one know about it?

Soldato
Joined
25 Dec 2002
Posts
2,862
Does anyone know much about GPG, specifically importing of an RSA private key?

I've been given an RSA private key to encode a file with, unfortunately there doesn't appear to be any way of importing it into GPG to do this!

Any help rewarded with internet cookies!:D
 
Does anyone know much about GPG, specifically importing of an RSA private key?

I've been given an RSA private key to encode a file with, unfortunately there doesn't appear to be any way of importing it into GPG to do this!

Any help rewarded with internet cookies!:D

Tutt tutt. What would Chuck say. Which of the crypto challenges are you upto? ;)
 
^Now that is weird!! Still on Q31 of the PKI challenge, been trying to figure it out for the past 2 hours.

Tried all the normal import commands but no luck at all!
 
Yeah it is a bit wierd :p

You need to be using openssl. Take it you're on a Linux box? It should be installed by default.

You'll need to setup a CA as per the docs given in Semester 1 (they're still available, substitute http://blah/semester_2/ with semester_1) - Lab #10 is the one you want.

And then:

Code:
man openssl
man rsautl
man x509

Plenty of good guides around on the net - from my history:
http://www.entropy.ch/blog/Develope...Public-Key-and-PKI-Crash-Course-Part-1-4.html
http://www.5dollarwhitebox.org/wiki/index.php/OpenSSL_Quick_Reference
http://www.madboa.com/geek/openssl/

If all else fails, e-mail Chuck - he's helped me out whenever I've been staring at the screen for hours on end.

One other note - whenever you use echo, use echo -n - that kills the line feed.
 
Making some progress, sadly Chucks website keeps rejecting it, but i'm sure it's the right command!

echo -n "enigma" | openssl rsautl -sign -inkey Q31RSA.PRI | openssl enc -base64
 
What's the command? And come to think of it, what's the question :p

Remember you have to use a public key to verify - not the private key! In fact, is that right...

/goes off to check
 
Back
Top Bottom