修复证书问题

This commit is contained in:
ryan
2026-06-22 22:56:10 +08:00
parent 92ceecc6ce
commit 8ed91dbf97
5 changed files with 101 additions and 2 deletions
+5
View File
@@ -39,6 +39,11 @@ func sealSensitive(plaintext string) (string, error) {
return sensitiveValuePrefix + encrypted, nil
}
// OpenKeyPEM decrypts a stored certificate private key for runtime distribution.
func OpenKeyPEM(stored string) (string, error) {
return openSensitive(stored)
}
func openSensitive(stored string) (string, error) {
stored = strings.TrimSpace(stored)
if stored == "" {