Skip to content

Commit

Permalink
fix: revoke cert should return empty response
Browse files Browse the repository at this point in the history
  • Loading branch information
knrdl committed Jul 31, 2023
1 parent cfcdd88 commit 1d2ecc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/acme/certificate/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async def download_cert(
return Response(content=pem_chain, headers=response.headers, media_type='application/pem-certificate-chain')


@api.post('/revoke-cert')
@api.post('/revoke-cert', response_class=Response)
async def revoke_cert(data: Annotated[RequestData[RevokeCertPayload], Depends(SignedRequest(RevokeCertPayload, allow_new_account=True))]):
"""
https://www.rfc-editor.org/rfc/rfc8555#section-7.6
Expand Down
4 changes: 2 additions & 2 deletions tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ docker run -it --rm --name test_uacme2 --net test_net -v "$PWD/uacmedata:/uacme"
bash -c "nginx -g 'daemon on;' && uacme -vvv -c /uacme -h /usr/share/uacme/uacme.sh \
--acme-url http://acme.example.org:8080/acme/directory issue host30.example.org"

echo "uacme 3"
echo "uacme 3 (missing email addr on account registration)"
docker run -it --rm --name test_uacme1 --net test_net \
uacme uacme -v -y -c /tmp \
--acme-url http://acme.example.org:8080/acme/directory new || true
--acme-url http://acme.example.org:8080/acme/directory new 2>&1 | grep urn:ietf:params:acme:error:malformed



Expand Down

0 comments on commit 1d2ecc9

Please sign in to comment.