From 2cd1783bd5604937d5fbfa23ebd87b9009e95138 Mon Sep 17 00:00:00 2001 From: David Ripton Date: Tue, 28 May 2013 10:32:47 -0400 Subject: Add missing os.path.abspath around csrfile. We need to make sure paths are absolute before passing them to openssl. Fixes bug 1185052 Change-Id: I3ba9dd0a01d0078f830c33ac3173259985790060 --- nova/crypto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/crypto.py b/nova/crypto.py index 0447bd9b8..b312aca2d 100644 --- a/nova/crypto.py +++ b/nova/crypto.py @@ -324,7 +324,7 @@ def generate_x509_cert(user_id, project_id, bits=1024): with utils.tempdir() as tmpdir: keyfile = os.path.abspath(os.path.join(tmpdir, 'temp.key')) - csrfile = os.path.join(tmpdir, 'temp.csr') + csrfile = os.path.abspath(os.path.join(tmpdir, 'temp.csr')) utils.execute('openssl', 'genrsa', '-out', keyfile, str(bits)) utils.execute('openssl', 'req', '-new', '-key', keyfile, '-out', csrfile, '-batch', '-subj', subject) -- cgit