Revize 04805a41
Přidáno uživatelem Stanislav Král před téměř 4 roky(ů)
src/controllers/certificates_controller.py | ||
---|---|---|
649 | 649 |
return E_NO_CERTIFICATES_FOUND, C_INTERNAL_SERVER_ERROR |
650 | 650 |
else: |
651 | 651 |
# generate PKCS12 identity |
652 |
identity_byte_array = self.certificate_service.generate_pkcs_identity(cert.certificate_id, key,
|
|
652 |
identity_byte_array = self.certificate_service.generate_pkcs_identity(cert, key, |
|
653 | 653 |
identity_name, |
654 | 654 |
identity_password) |
655 | 655 |
return Response(identity_byte_array, mimetype='application/x-pkcs12') |
Také k dispozici: Unified diff
Re #8708 - Changed the generate_pkcs_identity method of the CertificateService in such way that the Certificate class instance is now passed instead of a certificate ID resulting in a decrease of SQL queries.