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

failed to RSA encrypt the plaintext: crypto/rsa: message too long for RSA key size #195

Open
artemiuss opened this issue Jun 26, 2024 · 0 comments

Comments

@artemiuss
Copy link

artemiuss commented Jun 26, 2024

My config.hcl:

# Benchmark config options
vault_addr = "http://localhost:8200"
vault_token = "root"
vault_namespace = "root"

test "transit_decrypt" "transit_decrypt_test" {
    weight = 100
    config {
        payload_len = 191
    }
}

I run ./vault-benchmark run -config=config.hcl and it returns an error:

2024-06-26T02:58:08.233+0300 [INFO]  vault-benchmark: setting up targets
2024-06-26T02:58:12.177+0300 [ERROR] vault-benchmark: target setup failed: error encrypting payload: Error making API request.

Namespace: root
URL: PUT http://localhost:8200/v1/8c2876f7-4ff3-d104-135e-317b425430d7/encrypt/test
Code: 500. Errors:

* 1 error occurred:
        * failed to RSA encrypt the plaintext: crypto/rsa: message too long for RSA key size

vault-benchmark version is 0.3.0

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

1 participant