From fd495d863303484c5843aaea0fa0a1c85b973a20 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Mon, 22 Mar 2021 16:36:03 +0100
Subject: [PATCH] update creation haproxy chained cert

---
 cm.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cm.sh b/cm.sh
index 4d86836..5749837 100755
--- a/cm.sh
+++ b/cm.sh
@@ -17,6 +17,7 @@
 # 2021-02-12  <axel.hahn@iml.unibe.ch>  added self test
 # 2021-02-17  <axel.hahn@iml.unibe.ch>  ensure checks list of aliases; new: optional host filter before adding a cert
 # 2021-03-12  <axel.hahn@iml.unibe.ch>  create file for haproxy
+# 2021-03-22  <axel.hahn@iml.unibe.ch>  for haproxy: use chained cert instead of server cert
 # ======================================================================
 
 
@@ -104,7 +105,7 @@ function _certTransfer(){
 	cp ${CM_filekey} ${CM_outfile_key}
 
 	_wd "--- create chained file for haproxy"
-	cat ${CM_outfile_cert} ${CM_outfile_key} > ${CM_outfile_haproxy}
+	cat ${CM_outfile_chain} ${CM_outfile_key} > ${CM_outfile_haproxy}
 
 	_wd "--- content of output dir $CM_dircerts:"
 	ls -l $CM_dircerts/*
-- 
GitLab