You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation (https://www.vaultproject.io/api/secret/pki/index.html#set-urls) says that you can set multiple URLs at /pki/config/urls path by using a list of strings and gives the example: {"ocsp_servers": ["https://..."]}. However, lists are not accepted and you get an error:
$ vault --version
Vault v0.8.3+ent ('02d9a02dfdd5b7a8becc4e67982a75782f948f58+CHANGES')
$ curl -H "X-Vault-Token: TOKEN" -X POST http://127.0.0.1:8200/v1/pki/config/urls -d '{"crl_distribution_points":["http://exampleone.com","http://exampletwo.com"]}'
{"errors":["1 error occurred:\n\n* Error converting input [http://exampleone.com http://exampletwo.com] for field crl_distribution_points: '' expected type 'string', got unconvertible type '[]interface {}'"]}
You get the same error when trying to give a list of strings for ocsp_servers and issuing_certificates.
Documentation (https://www.vaultproject.io/api/secret/pki/index.html#set-urls) says that you can set multiple URLs at
/pki/config/urls
path by using a list of strings and gives the example:{"ocsp_servers": ["https://..."]}
. However, lists are not accepted and you get an error:You get the same error when trying to give a list of strings for
ocsp_servers
andissuing_certificates
.It does allow you to enter multiple URLs as comma-separated string though. For example "http://exampleone.com,http://exampletwo.com"
The text was updated successfully, but these errors were encountered: