From 9028e8b8cfbf7e2021b57579807242e06d184aa1 Mon Sep 17 00:00:00 2001 From: Gurucharan Shetty Date: Mon, 22 Oct 2012 10:52:41 -0700 Subject: [PATCH] ovs-pki: Unique subject DNs for certificate requests. Some applications expect subject DNs to be unique. Bug #13609. Signed-off-by: Gurucharan Shetty --- utilities/ovs-pki.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utilities/ovs-pki.in b/utilities/ovs-pki.in index bf40c295..1f15410e 100755 --- a/utilities/ovs-pki.in +++ b/utilities/ovs-pki.in @@ -429,6 +429,8 @@ make_request() { must_not_exist "$arg1-privkey.pem" must_not_exist "$arg1-req.pem" make_tmpdir + # Use uuidgen or date to create unique subject DNs. + unique=`(uuidgen) 2>/dev/null` || unique=`date +"%Y %b %d %T"` cat > "$TMP/req.cnf" <&3 2>&3 \ -- 2.30.2