Revision 8049a1d7
b/lib/bootstrap.py | ||
---|---|---|
294 | 294 |
gntpass = utils.GetNodeDaemonPassword() |
295 | 295 |
if not re.match('^[a-zA-Z0-9.]{1,64}$', gntpass): |
296 | 296 |
raise errors.OpExecError("ganeti password corruption detected") |
297 |
f = open(constants.SSL_CERT_FILE) |
|
298 |
try: |
|
299 |
gntpem = f.read(8192) |
|
300 |
finally: |
|
301 |
f.close() |
|
297 |
gntpem = utils.ReadFile(constants.SSL_CERT_FILE) |
|
302 | 298 |
# in the base64 pem encoding, neither '!' nor '.' are valid chars, |
303 | 299 |
# so we use this to detect an invalid certificate; as long as the |
304 | 300 |
# cert doesn't contain this, the here-document will be correctly |
Also available in: Unified diff