/testing/guestbin/swan-prep --nokeys
Initializing NSS database
west #
 sed "s/seedbits=.*$/seedbits=520/" ipsec.conf > /etc/ipsec.conf
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec stop
Redirecting to: [initsystem]
west #
 grep -E "^seeded" /tmp/pluto.log
seeded 520 bits into the NSS PRNG from /dev/random
west #
 sed "s/seedbits=.*$/seedbits=1024/" ipsec.conf > /etc/ipsec.conf
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec stop
Redirecting to: [initsystem]
west #
 grep -E "^seeded" /tmp/pluto.log
seeded 1024 bits into the NSS PRNG from /dev/random
west #
 sed "s/seedbits=.*$/seedbits=2048/" ipsec.conf > /etc/ipsec.conf
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec stop
Redirecting to: [initsystem]
west #
 grep -E "^seeded" /tmp/pluto.log
seeded 2048 bits into the NSS PRNG from /dev/random
west #
 ipsec pluto --config /etc/ipsec.conf --seedbits=1024
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec whack --shutdown
Pluto is shutting down
west #
 grep -E "^seeded" /tmp/pluto.log
seeded 1024 bits into the NSS PRNG from /dev/random
west #
 # Test with custom seeddev
west #
 ipsec pluto --config /etc/ipsec.conf --seedbits=520 --seeddev /dev/urandom
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec whack --shutdown
Pluto is shutting down
west #
 grep -E "^seeded" /tmp/pluto.log
seeded 520 bits into the NSS PRNG from /dev/urandom
west #
