ibm-cloud-docs / hs-crypto

hs-crypto
3 stars 22 forks source link

Need some more detail on Key Format #51

Closed sandeep-at-ibm closed 1 year ago

sandeep-at-ibm commented 1 year ago

Hi, I am following ths doc here: https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-signing-service-signature-key&interface=ui to work with a signing service. Getting this error:

asn1: structure error: tags don't match (2 vs {class:0 tag:16 length:356 isCompound:true}) {optional:false explicit:false application:false private:false defaultValue:<nil> tag:<nil> stringType:0 timeType:0 set:false omitEmpty:false}  @4

I am looking for the following details to see if my Signing Service can be configured properly:

TiffanyLiIBM commented 1 year ago

Hi @marco - Any idea on who we can work with for this? Thanks!

clhgithubfree commented 1 year ago

The only signature key type supported for a signing service is P521 ECC. That is documented at: https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-signing-service-signature-key.

The signing service must support two functions: 1) return the public part of a signature key, 2) sign the provided data. The expected format of the public key is also documented in the referenced web page.

There was a bug in how CLI uses the signing service. Make sure the customer has the latest version of the TKE CLI plug-in installed (version 1.4.1).

sandeep-at-ibm commented 1 year ago

Thanks @clhgithubfree for the update. Will try with the new TKE-plugin v1.4.1. For now, this issue can be closed.