failure "You must specify a service name for use in the OpenPGP certificate user ID."
fi
+# test that a key with that user ID does not already exist
+check_key_userid "$serviceName" "$serviceName" && \
+ failure "A key with service name '$serviceName' already exists."
+
# check that the service name is well formatted
check_service_name "$serviceName"
| gpg_host --import
fi
-# export to gpg public key to file
-update_gpg_pub_file
+# export to OpenPGP public key to file
+update_pgp_pub_file
log info "host key imported:"