east:~#
 ipsec rsasigkey --help
Usage:	rsasigkey [--verbose] [--random device] nbits
          [--vary]
          [--rounds X]
          [--oldkey X]
          [--range [X:]Y]    make keys > X <= Y
          [--hostname FQDN]
          [--version]

	or
	rsasigkey [--verbose] --oldkey filename
east:~#
 ipsec rsasigkey --verbose --random=/testing/scripts/keygen-01/devrandom.bin --vary
getting 4 random bytes from /testing/scripts/keygen-01/devrandom.bin...
Picked RSA key of size 3168 bits (3325224030 random)

getting 198 random bytes from /testing/scripts/keygen-01/devrandom.bin...
looking for a prime starting there (can take a while)...
found it after 233 tries.
getting 198 random bytes from /testing/scripts/keygen-01/devrandom.bin...
looking for a prime starting there (can take a while)...
still looking after 256 tries.
still looking after 512 tries.
still looking after 768 tries.
still looking after 1024 tries.
still looking after 1280 tries.
found it after 1431 tries.
swapping primes so p is the larger...
computing modulus...
computing lcm(p-1, q-1)...
computing d...
computing exp1, exp1, coeff...
output...

	# RSA 3168 bits   east   Sun Dec  7 15:43:45 2003
	# for signatures only, UNSAFE FOR ENCRYPTION
	#pubkey=0sAQObav33p/YRdHQMEwU3Ihqc98uhJzP8eDfqZwSZE+8cJ9CC9RstKbtR8XiSMp/5ZOrIB7YdxaFqM14lcAELzJ+Za2z2eQL9LqApzYlrkFcm5fpi6/Azykl6nGl4I9mb1AVWgqxgEhSJRtsak118qgKu3nHGmwEgy7MlcDpY3IORwlSO28cfHPF897MCkSQ/Ebdj/3mdBvh+3sYQ6dP2g8eBGB0JLyHPeHA3h+hR/CJWBWLKbymC4BnDYvytWpcM5vnu7NCWCzI9/vLm2CFdzq1plrLGi4TPerSCKIfTfIqinbHrrmC75sE5itXILvTHZImjN9du9vyor1v/153PN6/hT1WbNa0RsZHyziJkFDEGZBVtYesmZIAhIBj2FsSQkqY+PyWLF6VylDheExF/IjsMo9tZjNZINEX6kntwAVoeasy2Gc5vcTR0VWzUGkufvrbgqQhor4rQvG3f1xBrymgmqHawO3XHEGzsxEI4cG/txKxcJdfByCRFux/HMbTcY7oJ3BkLCAfNq3RxDp8=
	Modulus: 0x9b6afdf7a7f61174740c130537221a9cf7cba12733fc7837ea67049913ef1c27d082f51b2d29bb51f17892329ff964eac807b61dc5a16a335e2570010bcc9f996b6cf67902fd2ea029cd896b905726e5fa62ebf033ca497a9c697823d99bd4055682ac6012148946db1a935d7caa02aede71c69b0120cbb325703a58dc8391c2548edbc71f1cf17cf7b30291243f11b763ff799d06f87edec610e9d3f683c781181d092f21cf78703787e851fc22560562ca6f2982e019c362fcad5a970ce6f9eeecd0960b323dfef2e6d8215dcead6996b2c68b84cf7ab4822887d37c8aa29db1ebae60bbe6c1398ad5c82ef4c76489a337d76ef6fca8af5bffd79dcf37afe14f559b35ad11b191f2ce226414310664156d61eb266480212018f616c49092a63e3f258b17a57294385e13117f223b0ca3db598cd6483445fa927b70015a1e6accb619ce6f713474556cd41a4b9fbeb6e0a90868af8ad0bc6ddfd7106bca6826a876b03b75c7106cecc44238706fedc4ac5c25d7c1c82445bb1fc731b4dc63ba09dc190b0807cdab74710e9f
	PublicExponent: 0x03
	# everything after this point is secret
	PrivateExponent: 0x19e72a53f153ad9368acadd633db046f7ea1f0313354beb3fc6680c42dfd2f5bf815d3848786f48da83ec3086ffee62721569e5a4b9ae7088fb0e8002ca21a9991e77e69807f87c55c4cec3c980e867ba9bb2752b34c61946f66e95b4eef4e00e3c0721003036c3679d9c33a3f71ab1d2512f66f2adacc9ddb92b46424c0984b0e17cf4bda84d2ea2948806d860a82f3e5ffe99a2bd415252102d1a353c0a1402eaf8187daf7e96809415162ff5b0e563b21bd3195d0044b3b2a1ce46e82267efd27781901dd724f88bb3c1f4b267ce1d57fe17e0d8f4b749fadd5c383b9b978a7eeaf3c8b635f0dbd52e4b84ef3184af6ce8251901a42d7989aed2c0d129330edb4b9c0e68be5fdc2dc767d14c1a901cc877a5cd377ede353adb413733019e0d468e91c9789c91c97306b517194e808609e35701df1703148889c4d0091e808545ca6a07ffc704e8dcee1482cc62f5483d3f100a0d94eca3dcec4219e8835138d7fd5b750b3edfe6a5414063b3f61396276af1cabeab54b5b064c28917fcb3ffd8d7ca083a655cf465bf88b
	Prime1: 0xd789a39fb15b45bc81976537134d8d90e07c88df7aedd4fa56a7f8de51703974a7e844f1c770119c73919cbe4a567d7f57bc98f9c4be6d5a82cd379e2385960dd2109b34b97db30c07b37f2ef2d179e8c8a35a4544acf30963674b7de1def2c0d2a138490171c1e88d75561ec338396e96d90830d2ed9fbb8228f6868148b47fe1911a8ae60409d4a2c2e99db82e623148b03305669a3e74084b7410fb53c8d8db84e1defc8a4aab5a140e66385b2dee1bbf4777bce00692e9fd4dfeda407ca990418bd50661
	Prime2: 0xb8981ae3be0a552b3e87307c6a49a5e2d57c3b360a509135f321c97541853e1ddefed5f2a46d09785f363da27f2f18dfbfe52f6483d7136db9ee857b1d2aafbc7b8ec66ea1f7e49b08a5cb1190ecb7ac2429cfc178f51e6693f9f84bcd0097a9e94774f28db713bc3d650a0755b3e930fc453f2dfeb45e332c0fdc03b0c2bb06b10be808a6653525fff8e013aa368841af4ec801d7ac76252165e366b29bc8b6a0f18ceccd88c2484c584f2dd2d08c59c8c25182415e454ab63cca8c530775783a8e427434ff
	Exponent1: 0x8fb117bfcb922e7dabba437a0cde5e6095a85b3fa74938a6e46ffb3ee0f57ba31a9ad8a12fa00bbda261132986e453aa3a7dbb512dd448e701de251417ae640936b5bccdd0fe775d5a77aa1f4c8ba69b306ce6d8d8734cb0ecef87a9413f4c808c6b7adb564bd69b08f8e41482257b9f0f3b5acb37491527ac1b4f0456307855410b67074402b1386c81f113d01eec20db20220399bc29a2b0324d60a78d309092589694a85c31c79162b44425921e9ebd2a2fa5289559b746a8dea9e6d5a8710ad65d38aeeb
	Exponent2: 0x7b1011ed295c38c77f04cafd9c311941e3a827795c35b623f76bdba381037ebe94a9e3f71848b0faea242916ff74bb3fd54374edad3a0cf3d149ae521371ca7da7b48449c14fedbcb06e87610b487a72c2c68a80fb4e144462a6a587de00651bf0da4df70924b7d2d398b15a39229b75fd837f73ff22e97772b53d57cb2c7caf20b29ab06eee236eaaa5eab7c6cf05811f89daabe51da418c0ee9799cc67db246b4bb3488905d6dadd9034c93735b2e685d6e10180e9838724288708375a4e50270981a2cdff
	Coefficient: 0x518c793c71533ed3a1c0e6ee58b49c38a0f0f05ec9691e61731ce9b40b6df5f5d2f88cf22e4d765a3c6ede7ae6c4822fe28e42043cad825bddc6cc4f84bd499422de4be4aefee67a195f3ae3240cd9338916d31c3593dfab9a7e0d900adad77033d8c6a9ae4bbe53b1dec474be674b08d4c9f86959d2953340f0cffeffd58ec135efd9cfe3a06061dce37ee10ca47175d28f1557e5efeea3382cb0381f1c14aeb0d61b8f86ab14e4916c8e248e351419337828ed58f2632b53caec0d3409605ed47f6cddfb6b

