mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 14:06:36 +08:00
3edcdb9e9f
Implement Cloudflare connection management, pointing groups and members, asynchronous A-record reconciliation, node IP triggers, admin APIs, management pages, migrations, tests, and documentation.
20 lines
497 B
Go
20 lines
497 B
Go
// Copyright 2026 Arctel.net
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package tls
|
|
|
|
import "github.com/Rain-kl/Wavelet/internal/apps/openflare/credential"
|
|
|
|
func sealSensitive(plaintext string) (string, error) {
|
|
return credential.Seal(plaintext)
|
|
}
|
|
|
|
// 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) {
|
|
return credential.Open(stored)
|
|
}
|