Skip to content

Commit

Permalink
Merge "Use correct filename for index & serial file when setting perm…
Browse files Browse the repository at this point in the history
…issions"
  • Loading branch information
Jenkins authored and openstack-gerrit committed Aug 29, 2013
2 parents e446e0a + 56f6401 commit 8fdfbf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keystone/common/openssl.py
Expand Up @@ -104,14 +104,14 @@ def build_ssl_config_file(self):
index_file = open(index_file_name, 'w')
index_file.write('')
index_file.close()
self._set_permissions(self.ssl_config_file_name, PRIV_PERMS)
self._set_permissions(index_file_name, PRIV_PERMS)

serial_file_name = os.path.join(self.conf_dir, 'serial')
if not file_exists(serial_file_name):
index_file = open(serial_file_name, 'w')
index_file.write('01')
index_file.close()
self._set_permissions(self.ssl_config_file_name, PRIV_PERMS)
self._set_permissions(serial_file_name, PRIV_PERMS)

def build_ca_cert(self):
ca_key_file = self.ssl_dictionary['ca_private_key']
Expand Down

0 comments on commit 8fdfbf0

Please sign in to comment.