assertre.match('[a-zA-Z0-9.-]+',config.SOCTOOLSPROXY),f"ERROR: The 'soctoolsproxy' variable loaded from '{config.VARIABLES_FILE}' is not a valid domain name."
assertre.match('[a-zA-Z0-9.-]+',config.SOCTOOLSPROXY),f"ERROR: The 'soctoolsproxy' variable loaded from '{config.VARIABLES_FILE}' is not a valid domain name."
# Set base URL for user management (this web service)
# TODO: load ports (or whole base URLs) from config as well
<p>The certificate for user '{{ username }}', which allows to access various SOCtools services,
can be downloaded in the following formats:</p>
{# TODO password field/prompt #}
<p><ahref="{{ url_for('export_certificate') }}?token={{token}}&format=p12">PKCS12 (.p12)</a> - contains both certificate and matching private key <spanstyle="font-style: italics; color: #777;">← You probably need this to import into your browser</span></p>