blob: 934d91ec01a8d94a72f293564fdf9ca7999ef21f [file] [log] [blame]
mockduo with self-signed cert
$ cd ${TESTDIR}
$ python mockduo.py certs/selfsigned.pem >/dev/null 2>&1 &
$ MOCKPID=$!
$ trap 'exec kill $MOCKPID >/dev/null 2>&1' EXIT
$ sleep 1
Invalid cert
$ ${BUILDDIR}/login_duo/login_duo -d -c confs/mockduo.conf -f whatever true
[4] Failsafe Duo login for 'whatever': Couldn't connect to localhost:4443: certificate verify failed
$ ${BUILDDIR}/login_duo/login_duo -d -c confs/mockduo_failsecure.conf -f whatever true
[4] Failsecure Duo login for 'whatever': Couldn't connect to localhost:4443: certificate verify failed
[1]
With noverify
$ ${BUILDDIR}/login_duo/login_duo -d -c confs/mockduo_noverify.conf -f preauth-allow true
[4] Skipped Duo login for 'preauth-allow': you rock