Software /
code /
prosody
Comparison
prosodyctl @ 8119:94a1fdaf12d1
prosodyctl: Make note about reporting where certificates are searched for
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Apr 2017 19:12:26 +0200 |
parent | 8118:f8c52010bd37 |
child | 8120:3c5f0cb4381a |
comparison
equal
deleted
inserted
replaced
8118:f8c52010bd37 | 8119:94a1fdaf12d1 |
---|---|
885 and lfs.attributes(dir .. "/" .. host .. ".key") then | 885 and lfs.attributes(dir .. "/" .. host .. ".key") then |
886 copy(dir .. "/" .. host .. ".crt", cert_basedir .. "/" .. host .. ".crt", nil, owner, group); | 886 copy(dir .. "/" .. host .. ".crt", cert_basedir .. "/" .. host .. ".crt", nil, owner, group); |
887 copy(dir .. "/" .. host .. ".key", cert_basedir .. "/" .. host .. ".key", "0377", owner, group); | 887 copy(dir .. "/" .. host .. ".key", cert_basedir .. "/" .. host .. ".key", "0377", owner, group); |
888 table.insert(imported, host); | 888 table.insert(imported, host); |
889 else | 889 else |
890 -- TODO Say where we looked | |
890 show_warning("No certificate for host "..host.." found :("); | 891 show_warning("No certificate for host "..host.." found :("); |
891 end | 892 end |
892 -- TODO Additional checks | 893 -- TODO Additional checks |
893 -- Certificate names matches the hostname | 894 -- Certificate names matches the hostname |
894 -- Private key matches public key in certificate | 895 -- Private key matches public key in certificate |