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
Vault Server Version (retrieve with vault status):
:~# vault status
Key Value
--- -----
Seal Type shamir
Initialized true
Sealed false
Total Shares 8
Threshold 2
Version 0.11.4
Cluster Name vault-cluster-98765432
Cluster ID abcdefgh-1234-5678-9012-123456789012
HA Enabled true
HA Cluster https://10.8.40.109:8201
HA Mode active
Vault CLI Version (retrieve with vault version):
~ % vault version
Vault v0.11.4 ('612120e76de651ef669c9af5e77b27a749b0dba3')
Also tested on current master branch. The same issue.
Server Operating System/Architecture:
~ % uname -a
Linux vault-dev 4.15.0-30-generic #32-Ubuntu SMP Thu Jul 26 17:42:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
This PR fix#5778.
Easy test case to reproduce the problem:
https://play.golang.org/p/CAMdrOHT7C1
Since `certStr` is empty string during first iteration `strings.Join()`
will merge empty line with first CA cert.
Extra `strings.TrimSpace` call will remove that empty line, before
certificate will be return.
Describe the bug
/pki/ca_chain
endpoints returns an empty line + ca_chain.File that starts with an empty is not a valid certificate according to Android :( (Works perfectly fine if we remove an empty line).
Place in a code: https://github.com/hashicorp/vault/blob/master/builtin/logical/pki/path_fetch.go#L178
Easy test case: https://play.golang.org/p/CAMdrOHT7C1
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No empty line at the beginning.
Environment:
vault status
):vault version
):Also tested on current master branch. The same issue.
Vault server configuration file(s):
Additional context
This issue can be fixed with PR: #5779
The text was updated successfully, but these errors were encountered: