--
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To post to this group, send email to vault...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/aea15cb2-64d6-4f3d-ac97-81868aa6c4de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hey Alex,When you start Vault in “-dev” mode, it automatically invokes “vault init” to initialize the backendand provides the unseal keys and the root token.In normal operation, you must initialize the Vault the first time and store the unseal keys androot token. Those are only provided once when “vault init” is invoked. Given that you havedata in Consul, it seems that has already been done, but you maybe did not store the output.Your best bet is to clear all the data in Consul, and then run “vault init” again, this time preservingthe output.Hope that helps!Best Regards,Armon Dadgar
listener "tcp" {
address = "10.0.0.24:8443"
tls_cert_file = "/apps/vault/conf/my_mac.crt"
tls_key_file = "/apps/vault/conf/my_mac.key"
}
listener "tcp" {
address = "127.0.0.1:8200"
tls_disable = 1
}
backend "consul" {
address = "10.0.0.24:8500"
datacenter = "dc1"
path = "vault"
}
After server is started and in seal mode, I tried this unseal cmd but failed:
# vault unseal 14837a18f9392a4518616a8232a1f294a658e49a8b9823321720142e32ed8ded
Error checking seal status: Error making API request.
URL: GET http://127.0.0.1:8200/v1/sys/seal-status
Code: 500. Errors:
* failed to check seal configuration: Unexpected response code: 500
vault log:
2015/06/26 19:50:56 [ERR] core: failed to read seal configuration: Unexpected response code: 500
Thanks
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/13cbdc99-e822-4f7b-bdae-f3df17591ac7%40googlegroups.com.
# vault init
Error initializing Vault: Error making API request.
URL: PUT http://127.0.0.1:8200/v1/sys/init
Code: 400. Errors:
* failed to check for initialization: Unexpected response code: 500
# vault status
Error checking seal status: Error making API request.
URL: GET http://127.0.0.1:8200/v1/sys/seal-status
Code: 500. Errors:
* failed to check seal configuration: Unexpected response code: 500
vault log:
2015/06/27 09:06:31 [ERR] core: barrier init check failed: failed to check for initialization: Unexpected response code: 500
2015/06/27 09:07:38 [ERR] core: failed to read seal configuration: Unexpected response code: 500
config file:
listener "tcp" {
address = "10.0.0.24:8443"
tls_cert_file = "/apps/vault/conf/my_mac.crt"
tls_key_file = "/apps/vault/conf/my_mac.key"
}
listener "tcp" {
address = "127.0.0.1:8200"
tls_disable = 1
}
backend "consul" {
address = "10.0.0.24:8500"
datacenter = "dc1"
path = "vault"
}
Thanks
# vault init
Key 1: 8b0fdf7abdaa2e522400438e4cad00849361ac5379a783b77de3bb715a523d5f01
Key 2: 69b53e73d09e71831b969769667d9dee5dcfe7814e891d456c88a6989f71643a02
Key 3: 96fef18bc47fc93b68aa1dfaafa64a86c9f709580e20c41888854b8dca2f7df903
Key 4: 833ad61304ca453051162acaebce928d0cdb8022260e41fbf0c969f2dcdf772704
Key 5: 7c7119eb102bfd88222aa059221545e598e36efb66a798a614c484e789816ee405
Initial Root Token: 60bb9e9b-d2be-129c-b2bf-f51a716c1850
Vault initialized with 5 keys and a key threshold of 3. Please
securely distribute the above keys. When the Vault is re-sealed,
restarted, or stopped, you must provide at least 3 of these keys
to unseal it again.
Vault does not store the master key. Without at least 3 keys,
your Vault will remain permanently sealed.
# vault unseal 8b0fdf7abdaa2e522400438e4cad00849361ac5379a783b77de3bb715a523d5f01
Sealed: true
Key Shares: 5
Key Threshold: 3
Unseal Progress: 1
# vault unseal 69b53e73d09e71831b969769667d9dee5dcfe7814e891d456c88a6989f71643a02
Sealed: true
Key Shares: 5
Key Threshold: 3
Unseal Progress: 2
# vault unseal 96fef18bc47fc93b68aa1dfaafa64a86c9f709580e20c41888854b8dca2f7df903
Sealed: false
Key Shares: 5
Key Threshold: 3
Unseal Progress: 0
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/7030f900-9b0f-469b-ac0f-7b171f4aab9b%40googlegroups.com.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/00b2d925-879b-4d25-9a20-3f75b2796d38%40googlegroups.com.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/2646a1ba-16e4-41bc-82ab-7ed7c1869e59%40googlegroups.com.
$ curl -sw '%{http_code}' --tlsv1.2 -X GET --cert /Users/jack.hsu/Desktop/vault/conf/my_mac.crt --key /Users/jack.hsu/Desktop/vault/conf/my_mac.key https://mac-guest-linux01:8443/v1/sys/health
{"initialized":true,"sealed":false,"standby":false}
200
When vault instance is standby:
curl -sw '%{http_code}' --tlsv1.2 -X GET --cert /Users/jack.hsu/Desktop/vault/conf/my_mac.crt --key /Users/jack.hsu/Desktop/vault/conf/my_mac.key https://mac-guest-linux01:8443/v1/sys/health
{"initialized":true,"sealed":false,"standby":true}
429
When vault instance is sealed:
curl -sw '%{http_code}' --tlsv1.2 -X GET --cert /Users/jack.hsu/Desktop/vault/conf/my_mac.crt --key /Users/jack.hsu/Desktop/vault/conf/my_mac.key https://mac-guest-linux01:8443/v1/sys/health
{"initialized":true,"sealed":true,"standby":true}
500
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/8d6db193-5724-45bd-a7a4-b0eafc2e8a08%40googlegroups.com.