Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Where to find / what is RSA key id?

0 views
Skip to first unread message

Raphaël ENRICI

unread,
Dec 31, 2008, 8:29:09 AM12/31/08
to
------=_Part_151329_4727034.1230730127068
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Dear all,
I'm currently working on a digital signature project based on
RSASSA-PKCS1-v1.5. As far as I understand I "just" need to create an SHA1
digest of what I should sign and encryt it with an RSA private key to get
the digital signature. I've made some test with openssl, python and java an=
d
I effectively get the same digital signature for my content that can be
verified with my RSA public key. Now I'm totally stopped by the need to
provide the key id for my RSA keypair.
Can someone here can point me to a good reading concerning what is the "key
id" for an RSA priv+pub keypair (if it makes sens to talk about for a key i=
d
without further information)? Or explain briefly what it is and in what
context I can have one associated with a RSA keypair? (maybe I need to
create a minimalistic PKI to get such an information? All of this is
absolutely unclear to me).

If it's another RTFM question, feel free to shout and please point me to it=
,
I definitely can't find what I'm looking for.

Thanks and best regards, any help to the crypto-novice I am would be much
appreciated,
Rapha=EBl
P.S. Here is how I generate my keypair and how I use it to create my digita=
l
signature:
private key generation: openssl genrsa -out testkey.pem 2048
public key extraction: openssl rsa -in testkey.pem -pubout -out testkey.pub
SHA1+RSA signature: openssl dgst -sha1 -sign testkey.pem -out test.txt.sha1
test.txt
Sig verification: openssl dgst -sha1 -verify testkey.pub -signature
test.txt.sha1 test.txt

------=_Part_151329_4727034.1230730127068
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<span class=3D"Apple-style-span" style=3D"font-family: Helvetica; font-size=
: 12px; "><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -w=
ebkit-line-break: after-white-space; ">Dear all,<div><br></div><div>I&#39;m=
currently working on a digital signature project based on RSASSA-PKCS1-v1.=
5. As far as I understand I &quot;just&quot; need to create an SHA1 digest =
of what I should sign and encryt it with an RSA private key to get the digi=
tal signature. I&#39;ve made some test with openssl, python and java and I =
effectively get the same digital signature for my content that can be verif=
ied with my RSA public key. Now I&#39;m totally stopped by the need to prov=
ide the key id for my RSA keypair.</div>
<div>Can someone here can point me to a good reading concerning what is the=
&quot;key id&quot; for an RSA priv+pub keypair (if it makes sens to talk a=
bout for a key id without further information)? Or explain briefly what it =
is and in what context I can have one associated with a RSA keypair? (maybe=
I need to create a minimalistic PKI to get such an information? All of thi=
s is absolutely unclear to me).</div>
<div><br></div><div>If it&#39;s another RTFM question, feel free to shout a=
nd please point me to it, I definitely can&#39;t find what I&#39;m looking =
for.</div><div><br></div><div>Thanks and best regards, any help to the cryp=
to-novice I am would be much appreciated,</div>
<div>Rapha=EBl</div><div>P.S. Here is how I generate my keypair and how I u=
se it to create my digital signature:</div><div><span class=3D"Apple-style-=
span" style=3D"font-family: Verdana; ">private key generation: openssl genr=
sa -out testkey.pem 2048<br>
public key extraction: openssl rsa -in testkey.pem -pubout -out testkey.pub=
<br>SHA1+RSA signature: openssl dgst -sha1 -sign testkey.pem -out test.txt.=
sha1 test.txt<br></span>Sig verification:&nbsp;<span class=3D"Apple-style-s=
pan" style=3D"font-family: Verdana; ">openssl dgst -sha1 -verify testkey.pu=
b -signature test.txt.sha1 test.txt</span></div>
</div></span>

------=_Part_151329_4727034.1230730127068--
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openss...@openssl.org
Automated List Manager majo...@openssl.org

0 new messages