ecdsasigkey generates an ECDSA public/private key pair, suitable for digital signatures, on a named curve
specified with curvename. Currently it only accepts secp256r1, secp384r1, and secp521r1.
The public exponent is forced to the value 3, which has important speed advantages for signature
checking. Beware that the resulting keys have known weaknesses as encryption keys andshouldnotbeusedforthatpurpose.
The --verbose option makes ecdsasigkey give a running commentary on standard error. By default, it works
in silence until it is ready to generate output.
The --seeddev option specifies a source for random bits used to seed the crypto library's RNG. The
default is /dev/random (see random(4)). FreeS/WAN and Openswan without NSS support used this option to
specify the random source used to directly create keys. Libreswan only uses it to seed the NSS crypto
libraries RNG. Under Linux with hardware random support, special devices might show up as /dev/*rng*
devices. However, these should never be accessed directly using this option, as hardware failures could
lead to extremely non-random values (streams of zeroes have been observed in the wild)
The --seedbits option specifies how many seed bits are pulled from the random device to seed the NSS
PRNG. The default of 480bit comes from FIPS requirements. Seed bits are rounded up to a multiple of 8.
The use of a different random device or a reduction of seedbits from the default value is prevented when
the system is running in FIPS mode.
The --nssdir option specifies the directory to use for the nss database. This is the directory where the
NSS certificate, key and security modules databases reside. The default value is /var/lib/ipsec/nss.
The --password option specifies the nss cryptographic module authentication password if the NSS module
has been configured to require it. A password is required by hardware tokens and also by the internal
software token module when configured to run in FIPS mode. If the argument is /etc/ipsec.d/nsspassword,
the password comes from that file; otherwise argument is the password.