Univention Bugzilla – Attachment 7166 Details for
Bug 38859
Generating a certificate fails if len(FQDN) > 64; join stalls
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for security whole
38859.patch (text/plain), 927 bytes, created by
Florian Best
on 2015-09-15 12:31:30 CEST
(
hide
)
Description:
patch for security whole
Filename:
MIME Type:
Creator:
Florian Best
Created:
2015-09-15 12:31:30 CEST
Size:
927 bytes
patch
obsolete
>diff --git a/base/univention-ssl/gencertificate.py b/base/univention-ssl/gencertificate.py >index b56ba7a..d454bf3 100644 >--- a/base/univention-ssl/gencertificate.py >+++ b/base/univention-ssl/gencertificate.py >@@ -159,11 +159,14 @@ def create_certificate(hostname, domainname): > ud.debug(ud.LISTENER, ud.INFO, > 'CERTIFICATE: Creating certificate %s' % hostname) > >- cmd = '. /usr/share/univention-ssl/make-certificates.sh;gencert "%s" "%s"' % \ >- (fqdn, fqdn) >- ret = subprocess.call(cmd, shell=True) >- if ret: >- raise Exception("Certificate creation failed.") >+ with tempfile.NamedTemporaryFile() as fd: >+ fd.write('. /usr/share/univention-ssl/make-certificates.sh;gencert "$UCS_FQDN" "$UCS_FQDN"') >+ fd.flush() >+ env = os.environ.copy() >+ env['UCS_FQDN'] = fqdn >+ ret = subprocess.call(['/bin/sh', fd.name]) >+ if ret: >+ raise Exception("Certificate creation failed.") > > # Create symlink > try:
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 38859
:
7166
|
7167
|
7168
|
7200