Facing similar SSL failure.
exceptions with Docker python:3.13-alpine
and rabbitmq-amqp-python-client library.
Apparently, while building proton package, it rely on pkgconf / pkg-config.
So after adding packages, proton.SSL.present()
again works
apk add --no-cache build-base pkgconf openssl openssl-dev