Closed annatisch closed 6 years ago
@annatisch Thank you for the issue, can you please let us know the OS and version you are using.
@annatisch @jebrando Is this issue due to the issue https://github.com/Azure/azure-uamqp-c/issues/226 in uAMQP? As the uAMQP issue seems to be resolved, is this issue still needed?
Btw, the call to SSL_CTX_set_default_verify_paths is made so by default the CA certs should be picked up from Ubuntu OSs.
Thanks, /Dan
Yes - thanks @jebrando and @dcristoloveanu - this issue was due to an invalid cmake configuration.
Hi @jebrando and @dcristoloveanu,
Turns out my cmake config was not the issue here. Or at least maybe not the only issue. We are getting these cert verify errors when building with use_openssl:bool=ON for both OSX and Linux (we don't use openssl on Windows). Are there any other build config flags that use_openssl is incompatible with or must be combined with? For example - can use_openssl be combined with use_builtin_httpapi:bool=ON (to avoid the libcurl dependency)? Alternatively, if we do take a dependency on libcurl, what would happen if libcurl had not been compiled to support openssl (which doesn't appear to be supported by default)?
In terms of OS, this is happening across multiple versions and distros of Linux (ubuntu, centos, and raspbian) and 10.12/10.13 OSX. We have also tried building against OpenSSL 1.0 and 1.1. Any thoughts would be appreciated :)
Finally figured this out. When building OpenSSL from source one must specify the --openssldir flag to the location of the ca certs and openssl.cnf on the destination machine. On ubuntu this is /etc/ssl, which is not the build default (/usr/local/ssl).
@annatisch thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey.
We are building this as past of a Python project using azure-uamqp-c. However if trying to run it I am consistently getting an OpenSSL error:
However, if I use openssl s_client, I get no issues:
Do you have any suggestions as to how I might debug this issue further? Thanks!