mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-11 01:36:37 +08:00
修复证书问题
This commit is contained in:
@@ -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 == "" {
|
||||
|
||||
Reference in New Issue
Block a user