diff --git a/vcert/connection_tpp_abstract.py b/vcert/connection_tpp_abstract.py index 840f01a..2aad494 100644 --- a/vcert/connection_tpp_abstract.py +++ b/vcert/connection_tpp_abstract.py @@ -331,17 +331,21 @@ def renew_cert(self, request, reuse_key=False): def revoke_cert(self, request): if not (request.id or request.thumbprint): raise ClientBadData + d = { 'Disable': request.disable } if request.reason: d['Reason'] = request.reason + if request.comments: + d['Comments'] = request.comments if request.id: d['CertificateDN'] = request.id elif request.thumbprint: d['Thumbprint'] = request.thumbprint else: raise ClientBadData + # TODO: Change _post() with post(args) status, data = self._post(URLS.CERTIFICATE_REVOKE, data=d) if status in (HTTPStatus.OK, HTTPStatus.ACCEPTED):