clay-server 2.13.0-beta.2 → 2.13.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +2 -0
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -594,6 +594,8 @@ function ensureCerts(ip) {
|
|
|
594
594
|
var needRegen = false;
|
|
595
595
|
try {
|
|
596
596
|
var certText = execFileSync("openssl", ["x509", "-in", certPath, "-text", "-noout"], { encoding: "utf8" });
|
|
597
|
+
// If cert is from an external CA (e.g. Tailscale/Let's Encrypt), never regenerate
|
|
598
|
+
if (certText.indexOf("mkcert") === -1) return { key: keyPath, cert: certPath, caRoot: caRoot };
|
|
597
599
|
for (var i = 0; i < allIPs.length; i++) {
|
|
598
600
|
if (certText.indexOf(allIPs[i]) === -1) {
|
|
599
601
|
needRegen = true;
|