|
|
@ -174,13 +174,13 @@ nsCertType = %s
|
|
|
|
if os.path.exists(keyFile):
|
|
|
|
if os.path.exists(keyFile):
|
|
|
|
os.chown(keyFile, uid,gid)
|
|
|
|
os.chown(keyFile, uid,gid)
|
|
|
|
os.chmod(keyFile, keyFileMode)
|
|
|
|
os.chmod(keyFile, keyFileMode)
|
|
|
|
if textLine == False:
|
|
|
|
if textLine is False:
|
|
|
|
self.printERROR(_("Can not create certificate %s")%certFile)
|
|
|
|
self.printERROR(_("Can not create certificate %s")%certFile)
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
# Проверка сертификата
|
|
|
|
# Проверка сертификата
|
|
|
|
textLine = execProg("%s x509 -subject -fingerprint -noout -in %s"\
|
|
|
|
textLine = execProg("%s x509 -subject -fingerprint -noout -in %s"\
|
|
|
|
%(sslFile, certFile))
|
|
|
|
%(sslFile, certFile))
|
|
|
|
if textLine == False:
|
|
|
|
if textLine is False:
|
|
|
|
self.printERROR(_("Can not create certificate %s")%certFile)
|
|
|
|
self.printERROR(_("Can not create certificate %s")%certFile)
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
return True
|
|
|
|
return True
|
|
|
|