It's been some time since I upgraded openresty. My install script sets
download_server=
http://opm.openresty.org
HTTP, not HTTPS as described in
https://opm.openresty.org/docs#download_server because I have trouble getting curl to authenticate the ssl connection.
This has always worked for me over the years, but this time I get an error like:
opm install duhoobo/lua-resty-smtp
* Fetching duhoobo/lua-resty-smtp
ERROR: unexpected server response status code for URL "
http://opm.openresty.org/api/pkg/fetch?account=duhoobo&name=lua-resty-smtp&op=&version=": 301
Has something changed about opm and using the HTTP endpoint?
I tested with the default, and end up with a different error
**********************
opm install duhoobo/lua-resty-smtp
* Fetching duhoobo/lua-resty-smtp
curl: (60) Peer certificate cannot be authenticated with known CA certificates
More details here:
http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
ERROR: failed to run command "curl -sS -i -A 'opm 0.0.5 (x86_64-linux-thread-multi, perl v5.10.1)' '
https://opm.openresty.org/api/pkg/fetch?account=duhoobo&name=lua-resty-smtp&op=&version='"
*********************************
After a bit of research, it seemed like pointing to my company cert bundle might help, like
export SSL_CERT_FILE=/path/to/tls-ca-bundle.pem
but that didn't change the error.
What am I missing here?
Thanks
Erik
----------------------------------------------------------------------
This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at
http://www.bankofamerica.com/emaildisclaimer. If you are not the intended recipient, please delete this message.