summaryrefslogtreecommitdiff
path: root/certs/makecerts.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-08-07 01:00:42 +0200
committerJose <jose@zeroc.com>2014-08-07 01:00:42 +0200
commitd86ef31c63190285dda3233b8ee2cb5d381c7686 (patch)
tree653d33813fef2d5997916d8462f516646af919c3 /certs/makecerts.py
parentupdating .depend files (diff)
downloadice-d86ef31c63190285dda3233b8ee2cb5d381c7686.tar.bz2
ice-d86ef31c63190285dda3233b8ee2cb5d381c7686.tar.xz
ice-d86ef31c63190285dda3233b8ee2cb5d381c7686.zip
Windows SSL SChannel implementation & OS X Secure Transport fixes.
Diffstat (limited to 'certs/makecerts.py')
-rwxr-xr-xcerts/makecerts.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/certs/makecerts.py b/certs/makecerts.py
index 5d311cf3df2..753824bfafb 100755
--- a/certs/makecerts.py
+++ b/certs/makecerts.py
@@ -35,9 +35,10 @@ def prepareCAHome(dir, force):
if not os.path.exists(dir):
os.mkdir(dir)
- f = open(os.path.join(dir, "serial"), "w")
- f.write("01")
- f.close()
+ if not os.path.exists(os.path.join(dir, "serial")):
+ f = open(os.path.join(dir, "serial"), "w")
+ f.write("01")
+ f.close()
f = open(os.path.join(dir, "index.txt"), "w")
f.truncate(0)