Description
I recently used iroh dns automatic management and found two problems.
- Now iroh relay manual mode should already support pem certificate format. But I found that iroh dns manual mode iroh-dns-server/src/http/tls.rs
if domains.len() != 1 { bail!("Multiple domains in manual mode are not supported"); } let keyname = escape_hostname(&domains[0]); let cert_path = dir.join(format!("{keyname}.crt")); let key_path = dir.join(format!("{keyname}.key"));
-
The default format is crt, which is very unfriendly to some free certificate authorities, such as let's encrypt. I don't know if let's encrypt supports crt format application. As far as I know, it defaults to pem, but some tools I use, such as allinssl (Automatic certificate management including renewal application) always uses pem format first. Can the manual mode also support pem, so that it is unified and convenient to manage?
-
Regarding the manual management of iroh-dns certificate location, after analyzing the source code, it should be in the .cache directory. I can't find any options for setting the certificate path or name in the selection. Can it be added, just like iroh relay (if I remember correctly, iroh relay can be customized).
Why do I use https://github.com/allinssl/allinssl to manually manage certificates instead of using iroh dns internal automatic maintenance?
- a. iroh dns / iroh relay have different certificate management methods, one with automatic management (iroh dns) and the other requires manual management. This is very inconvenient when doing automation
- b. After I used iroh dns for a certificate cycle (3 months), I found that it can apply successfully, But when the certificate expires, it does not automatically renew, nor does it automatically load a new certificate. I'm not sure if there is something wrong with my understanding. I saw the functions of automatic loading and automatic renewal (in the relevant code) in the options. But the specific reason why it failed to renew is unknown. My process has been running for 3 months without interruption. The shortest time for let's encrypt test certificates is also 3 months, so I don't know how to reproduce this problem.
- c. So I used allinssl to facilitate the management of iroh relay iroh dns certificates. However, iroh - dns manual management only supports crt format. This makes it very difficult for me to automate management. If iroh dns can support pem manual loading, I can achieve long-term automated management without having to restart the node every 3 months.