|
|
@ -55,7 +55,7 @@ class CertClass (QtGui.QWidget):
|
|
|
|
Send_button.clicked.connect(self.send)
|
|
|
|
Send_button.clicked.connect(self.send)
|
|
|
|
layout_button.addWidget(Send_button)
|
|
|
|
layout_button.addWidget(Send_button)
|
|
|
|
|
|
|
|
|
|
|
|
Get_button = QtGui.QPushButton(_("Get a certificate"), self)
|
|
|
|
Get_button = QtGui.QPushButton(_("Get the certificate"), self)
|
|
|
|
# Get_button.setFixedWidth(140)
|
|
|
|
# Get_button.setFixedWidth(140)
|
|
|
|
Get_button.clicked.connect(self.get)
|
|
|
|
Get_button.clicked.connect(self.get)
|
|
|
|
layout_button.addWidget(Get_button)
|
|
|
|
layout_button.addWidget(Get_button)
|
|
|
@ -71,7 +71,7 @@ class CertClass (QtGui.QWidget):
|
|
|
|
self.sendlayout.setColumnStretch(1,1)
|
|
|
|
self.sendlayout.setColumnStretch(1,1)
|
|
|
|
self.sendlayout.setColumnStretch(2,1)
|
|
|
|
self.sendlayout.setColumnStretch(2,1)
|
|
|
|
|
|
|
|
|
|
|
|
self.GroupBoxSend = QtGui.QGroupBox(_('Signature request'))
|
|
|
|
self.GroupBoxSend = QtGui.QGroupBox(_("Certificate signature request"))
|
|
|
|
# self.GroupBoxSend.setContentsMargins(10,0,0,0)
|
|
|
|
# self.GroupBoxSend.setContentsMargins(10,0,0,0)
|
|
|
|
self.GroupBoxSend.setLayout(self.sendlayout)
|
|
|
|
self.GroupBoxSend.setLayout(self.sendlayout)
|
|
|
|
|
|
|
|
|
|
|
@ -185,14 +185,14 @@ class CertClass (QtGui.QWidget):
|
|
|
|
return 1
|
|
|
|
return 1
|
|
|
|
del (self.client)
|
|
|
|
del (self.client)
|
|
|
|
if int(res) < 0:
|
|
|
|
if int(res) < 0:
|
|
|
|
show_msg (_("This server has not signed the certificate!"),
|
|
|
|
show_msg (_("The server has not signed the certificate!"),
|
|
|
|
parent=self)
|
|
|
|
parent=self)
|
|
|
|
return 1
|
|
|
|
return 1
|
|
|
|
fc = open(self.default_cert_path + 'req_id', 'w')
|
|
|
|
fc = open(self.default_cert_path + 'req_id', 'w')
|
|
|
|
fc.write(res)
|
|
|
|
fc.write(res)
|
|
|
|
fc.close()
|
|
|
|
fc.close()
|
|
|
|
show_msg (_("Your request ID: %s") %res + '\n' + \
|
|
|
|
show_msg (_("Your request ID: %s") %res + '\n' + \
|
|
|
|
_("To sign the certificate on the server, use command") + \
|
|
|
|
_("To submit the certificate request on the server use command") + \
|
|
|
|
'\n'+'cl-core --sign-client ID_CLIENT_REQUEST',
|
|
|
|
'\n'+'cl-core --sign-client ID_CLIENT_REQUEST',
|
|
|
|
title = _('Request'), parent=self)
|
|
|
|
title = _('Request'), parent=self)
|
|
|
|
return 0
|
|
|
|
return 0
|
|
|
@ -270,7 +270,7 @@ class CertClass (QtGui.QWidget):
|
|
|
|
elif cert == '2':
|
|
|
|
elif cert == '2':
|
|
|
|
show_msg (_("The request has not been reviewed yet.") + '\n' + \
|
|
|
|
show_msg (_("The request has not been reviewed yet.") + '\n' + \
|
|
|
|
_("Your request ID: %s") %req_id + '\n'+\
|
|
|
|
_("Your request ID: %s") %req_id + '\n'+\
|
|
|
|
_("To sign the certificate on the server, use command")+\
|
|
|
|
_("To submit the certificate request on the server use command")+\
|
|
|
|
'\n'+'cl-core --sign-client ID_CLIENT_REQUEST',
|
|
|
|
'\n'+'cl-core --sign-client ID_CLIENT_REQUEST',
|
|
|
|
title = _('Request'), parent = self)
|
|
|
|
title = _('Request'), parent = self)
|
|
|
|
return 1
|
|
|
|
return 1
|
|
|
|