# Vault ssh signing 400 error code

**URL:** <https://discuss.hashicorp.com/t/vault-ssh-signing-400-error-code/6646>\
**Category:** Vault\
**Created:** [March 9, 2020, 2:36pm UTC](https://discuss.hashicorp.com/t/vault-ssh-signing-400-error-code/6646 "2020-03-09T14:36:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![irwinmatt](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/irwinmatt/32/5198_2.png) [@irwinmatt](https://discuss.hashicorp.com/u/irwinmatt)\
**Post date:** [March 9, 2020, 2:36pm UTC](https://discuss.hashicorp.com/t/vault-ssh-signing-400-error-code/6646/1 "2020-03-09T14:36:47Z")

</div>

Hello Hashicorp Community,

I am just dipping my toes into Vault. Currently, I am attempting to write a signing key pair to a ssh secret endpoint, with the goal of signing data with this key. No matter what I do I get a 400 error code message back from the server.

![image](https://global.discourse-cdn.com/hashicorp/original/2X/b/becbe2e24398489e1976a342d853a49577beb40f.png)

The documents are extremely sparse with regards to writing the signing key:

 ![image](https://global.discourse-cdn.com/hashicorp/original/2X/f/f2846c7c18c2f535ff9c8d938c16965256d6b26c.png)

I can’t figure out if I am supposed to put the filepath in here or the actual data itself. I’ve tried just about everything:  
 ![image](https://global.discourse-cdn.com/hashicorp/original/2X/a/ace1122e95eaf86f29d80bca196d3449d61c63e8.png)  
 ![image](https://global.discourse-cdn.com/hashicorp/original/2X/8/84d71cadbd3d7d82931e20fec6a16656ba4276da.png)

The key I generated to do the signing was made via the following command:  
ssh-keygen -t rsa

---

<div class="post-metadata">

**Author:** ![irwinmatt](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/irwinmatt/32/5198_2.png) [@irwinmatt](https://discuss.hashicorp.com/u/irwinmatt)\
**Post date:** [March 10, 2020, 3:08pm UTC](https://discuss.hashicorp.com/t/vault-ssh-signing-400-error-code/6646/2 "2020-03-10T15:08:20Z")

</div>

Tried to set this from the web UI and it has been spinning saying its doing something for 10 minutes:

 ![image](https://global.discourse-cdn.com/hashicorp/original/2X/a/adaaf611b3a568b3c8cc3cba520d2d99ebd96e4e.png)

---

<div class="post-metadata">

**Author:** ![irwinmatt](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/irwinmatt/32/5198_2.png) [@irwinmatt](https://discuss.hashicorp.com/u/irwinmatt)\
**Post date:** [March 10, 2020, 3:19pm UTC](https://discuss.hashicorp.com/t/vault-ssh-signing-400-error-code/6646/3 "2020-03-10T15:19:53Z")

</div>

You should probably add an error message to the UI instead of spinning out on a error code:

 ![image](https://global.discourse-cdn.com/hashicorp/original/2X/a/ae6fdc128db7d511c35ef4691a3e8392310e9870.png)

---

<div class="post-metadata">

**Author:** ![irwinmatt](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/irwinmatt/32/5198_2.png) [@irwinmatt](https://discuss.hashicorp.com/u/irwinmatt)\
**Post date:** [March 10, 2020, 3:39pm UTC](https://discuss.hashicorp.com/t/vault-ssh-signing-400-error-code/6646/4 "2020-03-10T15:39:05Z")

</div>

Resolved this through the UI console by supplying a non encrypted key. Two issues here, one is that the UI doesn’t tell you when there is an error parsing the key. Second is that the command prompt tells you nothing when there is an error. Just gives you back the generic error shown above. I believe there is some way to turn on debug messages on from the console but not sure how.
