annotate host/test/test_renew_ssl.luan @ 2106:38d4b0a443ae ssltesting

minor
author Violet7
date Tue, 16 Dec 2025 18:42:17 -0800
parents ad0a9ef64827
children 5815f44197ee
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2057
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
1 local Luan = require "luan:Luan.luan"
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
2 local error = Luan.error
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3 local do_file = Luan.do_file or error()
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4 local Io = require "luan:Io.luan"
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
5 local uri = Io.uri or error()
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6 local Logging = require "luan:logging/Logging.luan"
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7 local logger = Logging.logger "test_https"
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9
2093
c0847b30833f mv https.luan Https.luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 2060
diff changeset
10 local Https = require "classpath:luan/host/Https.luan"
2057
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
11
2106
Violet7
parents: 2101
diff changeset
12 local domain = "https.s3.luan.software"
Violet7
parents: 2101
diff changeset
13 local site_dir = uri("file:../sites/ssl1.s3.luan.software/")
2057
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
14 local luanhost_dir = uri("file:..")
2060
546daa22aa39 https - check IP of domain
Franklin Schmidt <fschmidt@gmail.com>
parents: 2059
diff changeset
15 local dry_run = true
2057
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
16
2101
ad0a9ef64827 Https.renew_ssl
Franklin Schmidt <fschmidt@gmail.com>
parents: 2093
diff changeset
17 site_dir.exists() or error()
2057
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
18
2101
ad0a9ef64827 Https.renew_ssl
Franklin Schmidt <fschmidt@gmail.com>
parents: 2093
diff changeset
19 Https.renew_ssl(0,domain,site_dir,luanhost_dir,dry_run)