Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 314360 Details for
Bug 458159
tempcertreq is created in current dir
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Use temporary directory for storing files needed during cert request
freeipa-75-tempdir.patch (text/plain), 1.74 KB, created by
Rob Crittenden
on 2008-08-14 22:21:33 UTC
(
hide
)
Description:
Use temporary directory for storing files needed during cert request
Filename:
MIME Type:
Creator:
Rob Crittenden
Created:
2008-08-14 22:21:33 UTC
Size:
1.74 KB
patch
obsolete
>From 4e6e17b1abb159871b452b3a9bee6b010414309e Mon Sep 17 00:00:00 2001 >From: Rob Crittenden <rcrit@ipa.greyoak.com> >Date: Thu, 14 Aug 2008 18:36:35 -0400 >Subject: [PATCH] Create temporary files used in self-signed cert requests in a temporary > directory and ensure that it gets cleaned up when we're done with it. > >458159 >--- > ipa-server/ipaserver/certs.py | 10 ++++++++-- > 1 files changed, 8 insertions(+), 2 deletions(-) > >diff --git a/ipa-server/ipaserver/certs.py b/ipa-server/ipaserver/certs.py >index 41d983c..886632d 100644 >--- a/ipa-server/ipaserver/certs.py >+++ b/ipa-server/ipaserver/certs.py >@@ -20,8 +20,10 @@ > import os, stat, subprocess, re > import sha > import errno >+import tempfile > > from ipa import sysrestore >+from ipa import shutil > from ipa import ipautil > > CA_SERIALNO="/var/lib/ipa/ca_serialno" >@@ -38,8 +40,9 @@ class CertDB(object): > self.cacert_fname = self.secdir + "/cacert.asc" > self.pk12_fname = self.secdir + "/cacert.p12" > self.pin_fname = self.secdir + "/pin.txt" >- self.certreq_fname = self.secdir + "/tmpcertreq" >- self.certder_fname = self.secdir + "/tmpcert.der" >+ self.reqdir = tempfile.mkdtemp('', 'ipa-', '/var/lib/ipa') >+ self.certreq_fname = self.reqdir + "/tmpcertreq" >+ self.certder_fname = self.reqdir + "/tmpcert.der" > > # Making this a starting value that will generate > # unique values for the current DB is the >@@ -66,6 +69,9 @@ class CertDB(object): > else: > self.fstore = sysrestore.FileStore('/var/lib/ipa/sysrestore') > >+ def __del__(self): >+ shutil.rmtree(self.reqdir, ignore_errors=True) >+ > def set_serial_from_pkcs12(self): > """A CA cert was loaded from a PKCS#12 file. Set up our serial file""" > >-- >1.5.4.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 458159
: 314360 |
326145