Skip to content

fix: allow to specify custom signatureKey in the config.ini #1024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Mar 27, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove debug print statement for signature key and fix comment typo i…
…n key parsing logic
  • Loading branch information
dido18 committed Mar 26, 2025
commit 497a640e0f8858effaccec125beeaebe732ec64c
4 changes: 1 addition & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,7 @@ func loop() {
if len(*signatureKey) == 0 {
log.Panicf("signature public key cannot be empty")
}
fmt.Println("Signature key:", *signatureKey)

// when a public key is read fro the .ini file, the '\n' are escape with an additional '\', we need to replace them with '\n'
// when a public key is read from the .ini file, the '\n' are escape with an additional '\', we need to replace them with '\n'
signaturePubKey, err := utilities.ParseRsaPublicKey(strings.ReplaceAll(*signatureKey, "\\n", "\n"))
if err != nil {
log.Panicf("cannot parse signature key '%s'. %s", *signatureKey, err)
Expand Down
Loading