Skip to content

Commit

Permalink
fix: set CRYPTOGRAPHY_OPENSSL_NO_LEGACY (#4784)
Browse files Browse the repository at this point in the history
cryptography>=42.0 cannot load legacy algorithms on Ubuntu 20.04 for
armhf, ppc64el, riscv64, and s390x.

https://cryptography.io/en/latest/openssl/#legacy-provider-in-openssl-3-x
for details on legacy algorithms.

Fixes LP#2064639

Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
  • Loading branch information
mr-cal authored May 3, 2024
1 parent 3e3428e commit 7aeffed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ assumes:
environment:
PATH: "$SNAP/libexec/snapcraft:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
LD_LIBRARY_PATH: "$SNAP/none"
# cryptography>=42.0 cannot load legacy algorithms on
# Ubuntu 20.04 for armhf, ppc64el, riscv64, and s390x
CRYPTOGRAPHY_OPENSSL_NO_LEGACY: "1"


apps:
snapcraft:
Expand Down

0 comments on commit 7aeffed

Please sign in to comment.