<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: crypto key generate rsa signature command in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/crypto-key-generate-rsa-signature-command/m-p/4129133#M1072522</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/34902"&gt;@marvin&lt;/a&gt; gave you a very good explanation on the key. Just a small comment&lt;BR /&gt;on your command, the key word *signature* (at the end of the line) will&lt;BR /&gt;generate a key to be used for signing purpose only. It won't be used for&lt;BR /&gt;encrypting IKE VPN or WebUI. For a multi purpose key, you need to specify&lt;BR /&gt;the keyword *general-purpose* instead.&lt;BR /&gt;&lt;BR /&gt;The key isn't sent to any peer. Instead it's used to sign messages (HMAC&lt;BR /&gt;hashing), signing certificates, etc. This is the concept of PKI that a&lt;BR /&gt;private key isn't sent. Only the public key in the certificate is&lt;BR /&gt;published.&lt;BR /&gt;&lt;BR /&gt;You can read this.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.digicert.com/blog/where-is-your-private-key/" target="_blank"&gt;https://www.digicert.com/blog/where-is-your-private-key/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;**** please remember to rate useful posts&lt;BR /&gt;</description>
    <pubDate>Sun, 02 Aug 2020 07:12:09 GMT</pubDate>
    <dc:creator>Mohammed al Baqari</dc:creator>
    <dc:date>2020-08-02T07:12:09Z</dc:date>
    <item>
      <title>crypto key generate rsa signature command</title>
      <link>https://community.cisco.com/t5/network-security/crypto-key-generate-rsa-signature-command/m-p/4129027#M1072512</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can someone explain to me how does a router use the &lt;STRONG&gt;RSA signature key&lt;/STRONG&gt; generated by the following command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;crypto key generate rsa signature&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command generates only one key as shown by the &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;show crypto key mypubkey all&lt;/STRONG&gt;&lt;/FONT&gt; command.&lt;/P&gt;&lt;P&gt;Does the router use this key to sign messages or certificates sent to remote peers?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the router sends this key to remote peers? If so, do remote peers use this key to send signed messages to the router?&lt;/P&gt;&lt;P&gt;In what context is this type of key used? IPsec? Diffie Hellman? IKE?&lt;/P&gt;&lt;P&gt;Please help me understand how this key is used.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 15:46:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/crypto-key-generate-rsa-signature-command/m-p/4129027#M1072512</guid>
      <dc:creator>googleboy</dc:creator>
      <dc:date>2020-08-01T15:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: crypto key generate rsa signature command</title>
      <link>https://community.cisco.com/t5/network-security/crypto-key-generate-rsa-signature-command/m-p/4129120#M1072519</link>
      <description>&lt;P&gt;The key is used in securing ssh sessions. If the device also uses s a self-signed certificate the key may be used as the private key for the certificate (or you can optionally create and specify a separate key for use with your certificate).&amp;nbsp; A device's certificate can be used for IKEv2 IPsec or for SSL/TLS sessions to the device's web UI (where such exists and is enabled).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Aug 2020 06:14:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/crypto-key-generate-rsa-signature-command/m-p/4129120#M1072519</guid>
      <dc:creator>Marvin Rhoads</dc:creator>
      <dc:date>2020-08-02T06:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: crypto key generate rsa signature command</title>
      <link>https://community.cisco.com/t5/network-security/crypto-key-generate-rsa-signature-command/m-p/4129133#M1072522</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/34902"&gt;@marvin&lt;/a&gt; gave you a very good explanation on the key. Just a small comment&lt;BR /&gt;on your command, the key word *signature* (at the end of the line) will&lt;BR /&gt;generate a key to be used for signing purpose only. It won't be used for&lt;BR /&gt;encrypting IKE VPN or WebUI. For a multi purpose key, you need to specify&lt;BR /&gt;the keyword *general-purpose* instead.&lt;BR /&gt;&lt;BR /&gt;The key isn't sent to any peer. Instead it's used to sign messages (HMAC&lt;BR /&gt;hashing), signing certificates, etc. This is the concept of PKI that a&lt;BR /&gt;private key isn't sent. Only the public key in the certificate is&lt;BR /&gt;published.&lt;BR /&gt;&lt;BR /&gt;You can read this.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.digicert.com/blog/where-is-your-private-key/" target="_blank"&gt;https://www.digicert.com/blog/where-is-your-private-key/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;**** please remember to rate useful posts&lt;BR /&gt;</description>
      <pubDate>Sun, 02 Aug 2020 07:12:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/crypto-key-generate-rsa-signature-command/m-p/4129133#M1072522</guid>
      <dc:creator>Mohammed al Baqari</dc:creator>
      <dc:date>2020-08-02T07:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: crypto key generate rsa signature command</title>
      <link>https://community.cisco.com/t5/network-security/crypto-key-generate-rsa-signature-command/m-p/4129192#M1072523</link>
      <description>&lt;P&gt;Ah thanks&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/292493"&gt;@Mohammed al Baqari&lt;/a&gt;&amp;nbsp; for making that important distinction with the "signature" keyword.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Aug 2020 12:02:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/crypto-key-generate-rsa-signature-command/m-p/4129192#M1072523</guid>
      <dc:creator>Marvin Rhoads</dc:creator>
      <dc:date>2020-08-02T12:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: crypto key generate rsa signature command</title>
      <link>https://community.cisco.com/t5/network-security/crypto-key-generate-rsa-signature-command/m-p/4129197#M1072524</link>
      <description>&lt;P&gt;Thank you &lt;A href="https://community.cisco.com/t5/user/viewprofilepage/user-id/292493" target="_blank" rel="noopener"&gt;@Mohammed al Baqari&lt;/A&gt; for taking the time to try to answer my questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;although I already know that the private key (not the public key) is used for signing a message or a certificate, I am surprised to know that this command produces a private key and not a public key. The reason for my confusion is the &lt;A href="https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/security/a1/sec-a1-cr-book/sec-cr-c4.html#wp1444104032" target="_self"&gt;Cisco Command Reference Explanation&lt;/A&gt;! See the snapshot of it below!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2020-08-02 065624.png" style="width: 827px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/80654iA25D9CF8646F39C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotation 2020-08-02 065624.png" alt="Annotation 2020-08-02 065624.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tend to think of it as a private key, as you said. The question now is how a peer receiving a message or a certificate, signed by this key, verify the integrity of the received message or certificate without the corresponding public key that is used to decrypt the signature?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;The command generates only one key that is used for signature! Where is the corresponding public key?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Aug 2020 13:30:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/crypto-key-generate-rsa-signature-command/m-p/4129197#M1072524</guid>
      <dc:creator>googleboy</dc:creator>
      <dc:date>2020-08-02T13:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: crypto key generate rsa signature command</title>
      <link>https://community.cisco.com/t5/network-security/crypto-key-generate-rsa-signature-command/m-p/4129235#M1072527</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The command generate both public and private key (keypair). To answer your&lt;BR /&gt;question, it depends on the use case. For example if you use IPsec&lt;BR /&gt;certificate authentication, the peers exchange their certs which include&lt;BR /&gt;the public key in messages 4 and 5 of Main Mode (IKEV1). This helps to&lt;BR /&gt;verify signatures. For webUI, the cert will be presented to the browser,&lt;BR /&gt;etc.&lt;BR /&gt;&lt;BR /&gt;All subject to use case.&lt;BR /&gt;&lt;BR /&gt;**** please remember to rate useful posts&lt;BR /&gt;</description>
      <pubDate>Sun, 02 Aug 2020 16:21:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/crypto-key-generate-rsa-signature-command/m-p/4129235#M1072527</guid>
      <dc:creator>Mohammed al Baqari</dc:creator>
      <dc:date>2020-08-02T16:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: crypto key generate rsa signature command</title>
      <link>https://community.cisco.com/t5/network-security/crypto-key-generate-rsa-signature-command/m-p/4130707#M1072651</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;Thank you Mohammed.&lt;P class="1596624078864"&gt;Things are clear now. What caused the confusion is that I did not notice that the&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;show crypto key mypubkey all&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;command shows only the public keys. Corresponding private keys are not shown.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/292493"&gt;@Mohammed al Baqari&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;The command generate both public and private key (keypair). To answer your&lt;BR /&gt;question, it depends on the use case. For example if you use IPsec&lt;BR /&gt;certificate authentication, the peers exchange their certs which include&lt;BR /&gt;the public key in messages 4 and 5 of Main Mode (IKEV1). This helps to&lt;BR /&gt;verify signatures. For webUI, the cert will be presented to the browser,&lt;BR /&gt;etc.&lt;BR /&gt;&lt;BR /&gt;All subject to use case.&lt;BR /&gt;&lt;BR /&gt;**** please remember to rate useful posts&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 10:50:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/crypto-key-generate-rsa-signature-command/m-p/4130707#M1072651</guid>
      <dc:creator>googleboy</dc:creator>
      <dc:date>2020-08-05T10:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: crypto key generate rsa signature command</title>
      <link>https://community.cisco.com/t5/network-security/crypto-key-generate-rsa-signature-command/m-p/4130716#M1072652</link>
      <description>G8. Please remember to rate useful posts and mark the question as answered.&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Aug 2020 11:07:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/crypto-key-generate-rsa-signature-command/m-p/4130716#M1072652</guid>
      <dc:creator>Mohammed al Baqari</dc:creator>
      <dc:date>2020-08-05T11:07:05Z</dc:date>
    </item>
  </channel>
</rss>

