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
refactor(utilities): improve formatting in ParseRsaPublicKey function
  • Loading branch information
dido18 committed Mar 26, 2025
commit 27b7ce77a82f1a9c52d516679d3f0e7fb1f21513
10 changes: 5 additions & 5 deletions utilities/utilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ func ParseRsaPublicKey(key []byte) (*rsa.PublicKey, error) {
return nil, err
}

publicKey, ok := value.(*rsa.PublicKey)
if !ok {
return nil,fmt.Errorf("not an rsa key")
}
return publicKey, nil
publicKey, ok := parsedKey.(*rsa.PublicKey)
if !ok {
return nil, fmt.Errorf("not an rsa key")
}
return publicKey, nil
}

// MustParseRsaPublicKey parses a public key in PEM format and returns the rsa.PublicKey object.
Expand Down
Loading