@@ -139,6 +139,7 @@
}
function initRenewerConfigFromFile(){
+ //Set the renew switch state
$.get("/api/acme/autoRenew/enable", function(data){
if (data == true){
$("#enableCertAutoRenew").parent().checkbox("set checked");
@@ -152,11 +153,21 @@
})
});
+ //Load the email from server side
$.get("/api/acme/autoRenew/email", function(data){
if (data != "" && data != undefined && data != null){
$("#caRegisterEmail").val(data);
}
});
+
+ //Load the domain selection options
+ $.get("/api/acme/autoRenew/renewPolicy", function(data){
+ if (data == true){
+ $("#renewAllSupported").parent().checkbox("set checked");
+ }else{
+ $("#renewAllSupported").parent().checkbox("set unchecked");
+ }
+ });
}
initRenewerConfigFromFile();
@@ -238,6 +249,13 @@
counter++;
}
+
+ if (Object.keys(domainFileList).length == 0){
+ //No certificate in this system
+ tableBody.append(`
+
No certificate in use
+
`);
+ }
}
//Initiate domain table. If you needs to update the expired domain as well
diff --git a/src/web/tools/https.html b/src/web/tools/https.html
new file mode 100644
index 0000000..c05faf5
--- /dev/null
+++ b/src/web/tools/https.html
@@ -0,0 +1,321 @@
+
+
+
+
+
+
+
+
+ HTTPS Setup Wizard | Zoraxy
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This Wizard require both client and server connected to the internet.
+
+
+
+ HTTPS (TLS/SSL Certificate) Setup Wizard
+
This tool help you setup https with your domain / subdomain on your Zoraxy host.
+ Follow the steps below to get started
+
+
+
+
+ 1. Setup Zoraxy to listen to port 80 or 443 and start listening
+
ACME can only works on port 80 (or 80 redirected 443). Please make sure Zoarxy is listening to either one of the ports.
+
+
+
+
+
+
+
+
+ 2. If you are under NAT, setup Port Forward and forward external port 80 (and 443, if you are using 443) to your Zoraxy's LAN IP address port 80 (and 443)
+
If your Zoraxy server IP address starts with 192.168., you are mostly under a NAT router.
+
+ The check function below will use public ip to check if port is opened. Make sure your host is reachable from the internet!
+ If you are using 443, you still need to forward port 80 for performing 80 to 443 redirect.
+
+
+
+
+
+
+
+
+ 3. Point your domain (or sub-domain) to your Zoraxy server public IP address
+
DNS records might takes 5 - 10 minutes to take effect. If checking did not poss the first time, wait for a few minutes and retry.
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 4. Request a public CA to assign you a certificate
+
This process might take a few minutes and usually fully automated. If there are any error, you can see Zoraxy STDOUT / log for more information.
+
+
+
+
+
+
+
+ Your CA might send expire notification to you via this email.
+
+
+
+
+ If you have more than one domain in a single certificate, enter the domains separated by commas (e.g. s1.dev.example.com,s2.dev.example.com)
+
+
+
+
+ Matching rule to let Zoraxy pick which certificate to use (Also be used as filename). Usually is the longest common suffix of the entered addresses. (e.g. dev.example.com)
+
+
+
+
+
+
+
+
+
+
Let's Encrypt
+
+
Let's Encrypt
+
Buypass
+
ZeroSSL
+
+
+
+
+
+
+
+ Certificate for this domain has been installed. Visit the TLS/SSL tab for advance operations.
+