<div dir="auto">Hello Cathy,<br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">On Nov 15, 2017 00:40, "Smith, Cathy" <<a href="mailto:Cathy.Smith@pnnl.gov">Cathy.Smith@pnnl.gov</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div>
<font face="Calibri" size="2"><span style="font-size:11pt">
<div>Hello</div>
<div> </div>
<div> Is there a way to determine the key length and the type of key (RSA or other) used when generating  the keyring?  I have a RHEL 5 box using gpg 1.4.5 where I need to determine how a key ring was generated.    Even on an Ubuntu box using gpg2, the –list-secret-keys
option does not print out that information.</div>
<div> </div>
<div>Thank you.</div><font color="#888888">
<div> </div>
<div> </div>
<div>Cathy</div>
<div> </div>
<div><font size="2"><span style="font-size:10.5pt">-- </span></font></div>
<div><font size="2"><span style="font-size:10.5pt">Cathy L. Smith</span></font></div>
<div><font size="2"><span style="font-size:10.5pt">IT Engineer</span></font></div>
<div><font size="2"><span style="font-size:10.5pt"> </span></font></div>
<div><font size="2"><span style="font-size:10.5pt">Pacific Northwest National Laboratory</span></font></div>
<div><font size="2"><span style="font-size:10.5pt">Operated by Battelle for the </span></font></div>
<div><font size="2"><span style="font-size:10.5pt">U.S. Department of Energy</span></font></div>
<div><font size="2"><span style="font-size:10.5pt"> </span></font></div>
<div><font size="2"><span style="font-size:10.5pt">Phone: 509.375.2687</span></font></div>
<div><font size="2"><span style="font-size:10.5pt">Fax:       509.375.4399</span></font></div>
<div><font size="2"><span style="font-size:10.5pt">Email: <font color="#0563C1"><u><a href="mailto:cathy.smith@pnnl.gov" target="_blank">cathy.smith@pnnl.gov</a></u></font></span></font></div></font></span></font></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><p dir="ltr">gpg -K or gpg --list-keys or gpg --list-secret-keys should all print the information you are interested in. </p><p dir="ltr"><br></p><p dir="ltr">In my example the primary key is rsa3072 and encryption subkey is rsa4096. You can see this info before creation date if the key. </p><p dir="ltr">Note that gnupg older 1.x does not support ecc, only rsa/rsa and rsa/dsa. </p><p dir="ltr">~# gpg --list-secret-keys<br></p>
<p dir="ltr">sec   rsa3072 2017-11-15 [SC]<br>
      8275276834C8F08567185C92FB3157AB136ED940<br>
uid           [ultimate] Test Test <br>
ssb   rsa4096 2017-11-15 [E]</p><p dir="ltr">This is gnupg 2.2. How does it look at your side?</p><p dir="ltr"><br></p><p dir="ltr">Sebastian</p></div><div class="gmail_extra" dir="auto"></div></div>