update monkeysphere-authentication(8) to acknowledge use of monkeysphere beyond OpenSSH
[monkeysphere.git] / tests / basic
index ceb996319cb1b77770fb620b7c157f5ab32acc74..f808387ec9ccb65b93cf9bbe14b6829c131cfa42 100755 (executable)
@@ -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..."