Skip to content

Commit

Permalink
refactor: CryptographyDeprecationWarning: Properties that return a na…
Browse files Browse the repository at this point in the history
…ïve datetime object have been deprecated. Please switch to not_valid_after_utc.
  • Loading branch information
knrdl committed Jul 20, 2024
1 parent 0a44083 commit bf9de06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/acme/order/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ async def finalize_order(order_id: str, data: Annotated[RequestData[FinalizeOrde
not_valid_before, not_valid_after = await sql.record("""
insert into certificates (serial_number, csr_pem, chain_pem, order_id, not_valid_before, not_valid_after)
values ($1, $2, $3, $4, $5, $6) returning not_valid_before, not_valid_after
""", cert_sn, csr_pem, signed_cert.cert_chain_pem, order_id, signed_cert.cert.not_valid_before, signed_cert.cert.not_valid_after)
""", cert_sn, csr_pem, signed_cert.cert_chain_pem, order_id, signed_cert.cert.not_valid_before_utc, signed_cert.cert.not_valid_after_utc)
order_status = await sql.value("""
update orders set status='valid' where id = $1 and status='processing' returning status
""", order_id)
Expand Down

0 comments on commit bf9de06

Please sign in to comment.