{"id":3665,"date":"2022-12-20T17:19:43","date_gmt":"2022-12-20T20:19:43","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/ipsec_newhostkey-man8\/"},"modified":"2022-12-20T17:19:43","modified_gmt":"2022-12-20T20:19:43","slug":"ipsec_newhostkey-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/ipsec_newhostkey-man8\/","title":{"rendered":"IPSEC_NEWHOSTKEY (man8)"},"content":{"rendered":"<h1 align=\"center\">IPSEC_NEWHOSTKEY<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#FILES\">FILES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#HISTORY\">HISTORY<\/a><br \/> <a href=\"#BUGS\">BUGS<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">ipsec_newhostkey \u2212 generate a new raw RSA authentication key for a host<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"89%\">\n<p style=\"margin-top: 1em\"><b>ipsec<\/b> <i>newhostkey<\/i> [[\u2212\u2212quiet] | [\u2212\u2212verbose]] [\u2212\u2212nssdir<i>nssdir<\/i>] [\u2212\u2212password\u00a0<i>password<\/i>] [\u2212\u2212bits\u00a0<i>bits<\/i>] [\u2212\u2212curve\u00a0<i>curve<\/i>] [\u2212\u2212keytype\u00a0<i>rsa|ecdsa<\/i>] [\u2212\u2212seeddev\u00a0<i>device<\/i>]<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>newhostkey<\/i> generates an RSA public\/private key pair suitable for authenticating this host is generated and stored in the NSS database.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">See <b>ipsec_showhostkey<\/b>(8) for how to extract the public key from the NSS database.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Output Options <br \/> \u2212\u2212quiet<\/b><\/p>\n<p style=\"margin-left:17%;\">The <b>\u2212\u2212quiet<\/b> option suppresses both the <i>rsasigkey<\/i> narrative and the existing\u2212file warning message.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212nssdir\u00a0<\/b><i>nssdir<\/i><\/p>\n<p style=\"margin-left:17%;\">The <b>\u2212\u2212nssdir<\/b> option specifies the NSS DB directory where the certificate key, and modsec databases reside (default \/var\/lib\/ipsec\/nss)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212password\u00a0<\/b><i>password<\/i><\/p>\n<p style=\"margin-left:17%;\">The <b>\u2212\u2212password<\/b> option specifies a module authentication <i>password<\/i> that may be required if FIPS mode is enabled.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212bits\u00a0<\/b><i>bits<\/i><\/p>\n<p style=\"margin-left:17%;\">The <b>\u2212\u2212bits<\/b> option specifies the number of bits in the RSA key; the current default is a random (multiple of 16) value between 3072 and 4096. The minimum allowed is 2192.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212curve\u00a0<\/b><i>curve<\/i><\/p>\n<p style=\"margin-left:17%;\">The <b>\u2212\u2212curve<\/b> option specifies the named curve used in the ECDSA key; the current default is secp256r1. See <b>ipsec_ecdsasigkey<\/b>(8) for the available curve names.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212keytype\u00a0<\/b><i>rsa|ecdsa<\/i><\/p>\n<p style=\"margin-left:17%;\">The <b>\u2212\u2212keytype<\/b> option specifies the type of key, which can either be <i>rsa<\/i> (RSA) or <i>ecdsa<\/i> (ECDSA); if omitted the current default is <i>rsa<\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212seeddev\u00a0<\/b><i>device<\/i><\/p>\n<p style=\"margin-left:17%;\">The <b>\u2212\u2212seeddev<\/b> is used to specify the random device (default \/dev\/random used to seed the crypto library RNG.<\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">\/dev\/random, \/dev\/urandom<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ipsec_rsasigkey<\/b>(8), <b>ipsec_showhostkey<\/b>(8), <b>ipsec.secrets<\/b>(5)<\/p>\n<h2>HISTORY <a name=\"HISTORY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Originally written for the Linux FreeS\/WAN project <<b><font color=\"#0000FF\">https:\/\/www.freeswan.org<\/font><\/b><font color=\"#000000\">> by Henry Spencer. Updated by Paul Wouters<\/font><\/p>\n<h2>BUGS <a name=\"BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">As with <i>rsasigkey<\/i>, the run time is difficult to predict, since depletion of the system&#8217;s randomness pool can cause arbitrarily long waits for random bits for seeding the NSS library, and the prime\u2212number searches can also take unpredictable (and potentially large) amounts of CPU time. See <b>ipsec_rsasigkey<\/b>(8) .<\/font><\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>Paul Wouters<\/b><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">placeholder to suppress warning<\/font><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  ipsec_newhostkey \u2212 generate a new raw RSA authentication key for a host <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,779,4],"class_list":["post-3665","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-ipsec_newhostkey","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3665","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3665"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3665\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}