X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=tests%2Fbasic;h=f808387ec9ccb65b93cf9bbe14b6829c131cfa42;hb=01bf1da3ec050356b1a82e15e6a02f38cb0ee94d;hp=ceb996319cb1b77770fb620b7c157f5ab32acc74;hpb=792f1e3324076f8521de33aa15f1dd7ba9c9a73f;p=monkeysphere.git diff --git a/tests/basic b/tests/basic index ceb9963..f808387 100755 --- a/tests/basic +++ b/tests/basic @@ -547,6 +547,19 @@ echo "##################################################" echo "### ssh connection test for success..." ssh_test +echo +echo "##################################################" +echo "### Testing TLS setup..." + +openssl req -config "$TESTDIR"/openssl.cnf -x509 -newkey rsa:1024 -subj '/DC=net/DC=example/DC=testhost/CN=testhost.example.net/' -days 3 -keyout "$TEMPDIR"/tls_key.pem -nodes >"$TEMPDIR"/tls_cert.pem +monkeysphere-host import-key "$TEMPDIR"/tls_key.pem https://testhost + +# FIXME: how can we test this via an https client? +# We don't currently provide one. + +# FIXME: should we test other monkeysphere-host operations somehow now +# that we have more than one key in the host keyring? + echo echo "##################################################" echo "### revoking ssh host key..."