summaryrefslogtreecommitdiff
path: root/src/v1.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/v1.erl')
-rw-r--r--src/v1.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/v1.erl b/src/v1.erl
index 6d13541..e672182 100644
--- a/src/v1.erl
+++ b/src/v1.erl
@@ -120,8 +120,8 @@ add_chain(Input, Type) ->
html("add-chain: invalid base64-encoded chain: ",
[ChainBase64]);
[LeafCert | CertChain] ->
- case x509:valid_chain_p(catlfish:known_roots(),
- [LeafCert|CertChain]) of
+ case x509:normalise_chain(catlfish:known_roots(),
+ [LeafCert|CertChain]) of
{ok, [Leaf | Chain]} ->
lager:info("adding ~p cert ~p",
[Type, x509:cert_string(LeafCert)]),