diff options
| author | Дмитрий Олегович Саенко <saenkodmitriiol@gmail.com> | 2025-11-01 15:10:27 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-01 15:10:27 +0300 |
| commit | 4a75bd0a48db7ea3a2717806c5a9d3dcad31b92d (patch) | |
| tree | 7f302e7f778fc500a9d6a59b7fdb710ec28eef3b /main.go | |
| parent | b0c223c63126a576dffa83a16277fbd95af2db41 (diff) | |
Feature: add setting certs for subscription while generating for panel (#3578)
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -321,6 +321,20 @@ func updateCert(publicKey string, privateKey string) { } else { fmt.Println("set certificate private key success") } + + err = settingService.SetSubCertFile(publicKey) + if err != nil { + fmt.Println("set certificate for subscription public key failed:", err) + } else { + fmt.Println("set certificate for subscription public key success") + } + + err = settingService.SetSubKeyFile(privateKey) + if err != nil { + fmt.Println("set certificate for subscription private key failed:", err) + } else { + fmt.Println("set certificate for subscription private key success") + } } else { fmt.Println("both public and private key should be entered.") } |
