Skip to content

Commit

Permalink
Add KeySpec output when getting pubkey (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacscoding authored Oct 30, 2022
1 parent 1bbbfed commit c54be74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/handler/get_public_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,15 @@ func (r *RequestHandler) GetPublicKey() Response {
return NewResponse(200, &struct {
KeyId string
CustomerMasterKeySpec cmk.KeySpec
KeySpec cmk.KeySpec
//EncryptionAlgorithms []cmk.EncryptionAlgorithm
SigningAlgorithms []cmk.SigningAlgorithm
KeyUsage cmk.KeyUsage
PublicKey []byte
}{
KeyId: key.GetArn(),
CustomerMasterKeySpec: key.GetMetadata().CustomerMasterKeySpec,
KeySpec: key.GetMetadata().KeySpec,
//EncryptionAlgorithms: key.GetMetadata().EncryptionAlgorithms,
SigningAlgorithms: key.GetMetadata().SigningAlgorithms,
KeyUsage: key.GetMetadata().KeyUsage,
Expand Down

0 comments on commit c54be74

Please sign in to comment.