aws-samples / aws-cloudhsm-jce-examples

Sample applications demonstrating how to use the CloudHSM JCE
MIT No Attribution
36 stars 56 forks source link

Import EC Key Issue #78

Closed narasimhaks closed 9 months ago

narasimhaks commented 10 months ago

Hi,

I am trying to import an EC Private Key using the Keystore.SetKeyEntry() method. But the key is not being persistent. Can you please provide samples of setting the key attributes for keystore examples?

Alternatively is there a way to generate an EC Private key with curve params EC_CURVE_SECP521 and a custom point on the curve? Right now if i specify an EC_POINT attribute i am getting an AddAttributeException with an Unsupported Attribute error.

Please advice.

Thanks Narasimha

rday commented 9 months ago

There is a sample available as of #79. I hope this helps, thanks!

narasimhaks commented 9 months ago

Thanks, That solves my issue.