IPSEC_NEWHOSTKEY(8) | Executable programs | IPSEC_NEWHOSTKEY(8) |
ipsec_newhostkey - generate a new raw RSA authentication key for a host
ipsec newhostkey [[--quiet] | [--verbose]] [--nssdirnssdir] [--password password] [--bits bits] [--curve curve] [--keytype rsa|ecdsa] [--seeddev device]
newhostkey generates an RSA public/private key pair suitable for authenticating this host is generated and stored in the NSS database.
See ipsec_showhostkey(8) for how to extract the public key from the NSS database.
--quiet
--nssdir nssdir
--password password
--bits bits
--curve curve
--keytype rsa|ecdsa
--seeddev device
/dev/random, /dev/urandom
Originally written for the Linux FreeS/WAN project <https://www.freeswan.org> by Henry Spencer. Updated by Paul Wouters
As with rsasigkey, the run time is difficult to predict, since depletion of the system's randomness pool can cause arbitrarily long waits for random bits for seeding the NSS library, and the prime-number searches can also take unpredictable (and potentially large) amounts of CPU time. See ipsec_rsasigkey(8) .
Paul Wouters
06/02/2023 | libreswan |