Mercurial Hosting > luan
annotate host/test/test_renew_ssl.luan @ 2109:8f5863f0870d ssltesting tip
minor test
| author | Violet7 |
|---|---|
| date | Tue, 16 Dec 2025 18:58:36 -0800 |
| parents | 9df13949912f |
| children |
| 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 |
|
2093
c0847b30833f
mv https.luan Https.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
2060
diff
changeset
|
9 local Https = require "classpath:luan/host/Https.luan" |
|
2057
634a44d10c96
https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
10 |
| 2106 | 11 local domain = "https.s3.luan.software" |
| 2109 | 12 local site_dir = uri("file:../sites/https.s3.luan.software/") |
|
2057
634a44d10c96
https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
13 local luanhost_dir = uri("file:..") |
|
2060
546daa22aa39
https - check IP of domain
Franklin Schmidt <fschmidt@gmail.com>
parents:
2059
diff
changeset
|
14 local dry_run = true |
| 2107 | 15 local files = Https.get_files(domain, site_dir) |
| 2109 | 16 logger.info(files.csr_file.canonical().to_string()) |
| 17 | |
| 2101 | 18 site_dir.exists() or error() |
|
2057
634a44d10c96
https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
19 |
| 2107 | 20 Https.renew_ssl(files, 0,domain,site_dir,luanhost_dir,dry_run) |
