Skip to content

Commit

Permalink
use same terminology
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Dec 5, 2024
1 parent 26afa44 commit 2aa640f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodeman/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ async def enroll_node(
logger.debug("Valid data signature from %s", name, extra={"nodename": name})
except InvalidJWSSignature as exc:
logger.warning("Invalid data signature from %s", name, extra={"nodename": name})
raise HTTPException(status.HTTP_401_UNAUTHORIZED, detail="Invalid proof-of-possession signature") from exc
raise HTTPException(status.HTTP_401_UNAUTHORIZED, detail="Invalid data signature") from exc
node.public_key = public_key.export(as_dict=True, private_key=False)

# Verify X.509 CSR and issue certificate
Expand Down Expand Up @@ -294,7 +294,7 @@ async def renew_node(
logger.debug("Valid data signature from %s", name, extra={"nodename": name})
except InvalidJWSSignature as exc:
logger.warning("Invalid data signature from %s", name, extra={"nodename": name})
raise HTTPException(status.HTTP_401_UNAUTHORIZED, detail="Invalid proof-of-possession signature") from exc
raise HTTPException(status.HTTP_401_UNAUTHORIZED, detail="Invalid data signature") from exc
message = RenewalRequest.model_validate_json(jws.payload)

# Verify X.509 CSR and issue certificate
Expand Down

0 comments on commit 2aa640f

Please sign in to comment.