Skip to content
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

getMetadata returns invalid data for aes 256 key #51

Open
bgardner-noggin opened this issue Sep 23, 2024 · 1 comment
Open

getMetadata returns invalid data for aes 256 key #51

bgardner-noggin opened this issue Sep 23, 2024 · 1 comment

Comments

@bgardner-noggin
Copy link

Problem:

The key that is generated in the Dockerfile with the pkcs11-tool command gets returned by the xks-proxy

{
  "keySpec": "RSA_0",
  "keyUsage": [],
  "keyStatus": "ENABLED"
}

instead of

{
  "keySpec": "AES_256",
  "keyUsage": [
    "ENCRYPT",
    "DECRYPT",
    "SIGN",
    "VERIFY",
    "WRAP",
    "UNWRAP"
  ],
  "keyStatus": "ENABLED"
}

I attempted to use rust-gdb to figure out what was going on, however, when using a version compiled with debuginfo (drop the --release flag, and use target/debug/xks-proxy) the correct values are returned

@HarshVaragiya
Copy link

I just created a PR to fix this. Tagging rust version to 1.75.0 seems to fix this issue. #54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants