Browse Source

Web interface update

Add certificate request config file as example
master
Jeroen Vreeken 3 years ago
parent
commit
d134d4c1af
2 changed files with 43 additions and 2 deletions
  1. +16
    -2
      htdocs/index.html
  2. +27
    -0
      openssl-csr.conf

+ 16
- 2
htdocs/index.html View File

@ -4,6 +4,20 @@
<title>dml_httpd</title>
<meta charset="UTF-8">
</head>
<style>
div {
border: 0px;
border-radius: 5px;
margin-top: 1px;
margin-bottom: 0px;
margin-left: 1px;
margin-right: 1px;
padding-left: 1px;
padding-right: 1px;
padding-top: 1px;
padding-top: 1px;
}
</style>
<body style="background-color: white;">
<script>
@ -617,8 +631,8 @@ connection = new dml();
connection.packet_hello_cb = function(flags, ident) {
document.getElementById("hello").innerHTML =
"Server identity: " + ident + "<br>" +
"Server flags: " + connection.hello_flag2str(flags);
"<i><small>Server identity: " + ident + " " +
"Server flags: " + connection.hello_flag2str(flags) + "</i></small>";
}
connection.packet_route_cb = function(hops, id) {


+ 27
- 0
openssl-csr.conf View File

@ -0,0 +1,27 @@
[req]
distinguished_name = req_distinguished_name
req_extensions = v3_req
[ v3_req ]
# Extensions to add to a certificate request
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectAltName = @alt_names
[req_distinguished_name]
countryName = Country Name (2 letter code)
countryName_default = NL
commonName = Common name (e.g. pirate.ampr.org)
# Replace with your callsign:
commonName_default = pirate.ampr.org
commonName_max = 64
emailAddress = Email Address
emailAddress_default = pirate@example.com
emailAddress_max = 40
[alt_names]
# Replace with your callsign:
DNS.1 = *.pirate.ampr.org

Loading…
Cancel
Save