From: Gurucharan Shetty Date: Mon, 22 Oct 2012 17:52:41 +0000 (-0700) Subject: ovs-pki: Unique subject DNs for certificate requests. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9028e8b8cfbf7e2021b57579807242e06d184aa1;p=openvswitch ovs-pki: Unique subject DNs for certificate requests. Some applications expect subject DNs to be unique. Bug #13609. Signed-off-by: Gurucharan Shetty --- 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 \