make amqp's TLS safe to use