open-vault/builtin/logical/pki
Lukasz Jagiello 76008b2e1e Remove an empty line for /pki/ca_chain (#5779)
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.
2018-12-12 15:38:35 -05:00
..
cmd/pki Make builtin auth and secret plugins buildable (#5456) 2018-10-09 09:29:20 -07:00
backend.go Add an idle timeout for the server (#4760) 2018-06-16 18:21:33 -04:00
backend_test.go Use inclusive range on cert role diff comparison (#5737) 2018-11-08 12:15:12 -08:00
ca_test.go Use tidy_revoked_certs instead of tidy_revocation_list (#5608) 2018-10-29 19:29:35 -04:00
ca_util.go Set allowed OIDs to any value when generaing a CA. (#5462) 2018-10-08 09:51:43 -04:00
cert_util.go Re-add default NotBefore duration in PKI (#5482) 2018-10-10 09:42:37 -04:00
cert_util_test.go Add context to storage backends and wire it through a lot of places (#3817) 2018-01-19 01:44:44 -05:00
crl_test.go Two PKI improvements: (#5134) 2018-08-21 11:20:57 -04:00
crl_util.go Two PKI improvements: (#5134) 2018-08-21 11:20:57 -04:00
fields.go Add URI SANs (#4767) 2018-06-15 15:32:25 -04:00
path_config_ca.go Two PKI improvements: (#5134) 2018-08-21 11:20:57 -04:00
path_config_crl.go Two PKI improvements: (#5134) 2018-08-21 11:20:57 -04:00
path_config_urls.go Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
path_fetch.go Remove an empty line for /pki/ca_chain (#5779) 2018-12-12 15:38:35 -05:00
path_intermediate.go Two PKI improvements: (#5134) 2018-08-21 11:20:57 -04:00
path_issue_sign.go Remove now-spurious ttl check and logic from sign-verbatim. (#5552) 2018-10-19 11:13:59 -04:00
path_revoke.go Two PKI improvements: (#5134) 2018-08-21 11:20:57 -04:00
path_roles.go Set allowed OIDs to any value when generaing a CA. (#5462) 2018-10-08 09:51:43 -04:00
path_roles_test.go Add an idle timeout for the server (#4760) 2018-06-16 18:21:33 -04:00
path_root.go Two PKI improvements: (#5134) 2018-08-21 11:20:57 -04:00
path_tidy.go Properly continue if cert entry is nil when tidying (#5933) 2018-12-11 11:28:14 -05:00
secret_certs.go Add context to storage backends and wire it through a lot of places (#3817) 2018-01-19 01:44:44 -05:00
util.go Include and use normalizeSerial func 2017-05-03 10:12:58 -04:00