-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Curl failed with code 60 (SSL peer certificate or SSH remote key was not OK) #880
Comments
Hello, There can be several possible causes for this - if you have not already, searching through previous issues may shed some useful information. In general, make sure the key/cert are in the right format, and have the right permissions. You could also try un-setting ACV_CA_FILE, or trying a different CA file. Additionally, if you are using the FIPS provider, ensure that OpenSSL has its default provider explicitly enabled in the config, as curl often seems to fail if only the FIPS provider is enabled. Thanks, |
Hi Andrew, hsm-pqc@hsm-pqc:~/CAVP/libacvp$ ./app/acvp_app -v ACVP library version: libacvp_oss-2.1.1 Compiled SSL version: OpenSSL 3.0.0 7 sep 2021
ssl_OSSL_PROVIDER_num: 1 hsm-pqc@hsm-pqc:~/CAVP/libacvp$ ./app/acvp_app --aes --vector_req vectors.req status of EVP_Q_DIGEST: 1md_len: 28Using the following parameters:
[ACVP]: Logging in... still i'm seeing same problem, can you please help out. Thanks, |
hsm-pqc@hsm-pqc:~/CAVP/libacvp$ openssl list -providers in ACVP complied SSL version and linked SSL version not same, Any thoughts? hsm-pqc@hsm-pqc:~/CAVP/libacvp$ ./app/acvp_app -v ACVP library version: libacvp_oss-2.1.1 Compiled SSL version: OpenSSL 3.0.0 7 sep 2021
ssl_OSSL_PROVIDER_num: 2 |
Hi, Yes, you typically always want to have the same compiled and linked version. Since you have multiple OpenSSL libraries on the device, you need to set the appropriate linux environment varaibles to make sure the version you want is linked. Usually we set LD_LIBRARY_PATH to the directory containing the libcrypto.so we want to test, which bypasses the system's OpenSSL library. Thanks, |
Hi @chenchudhcs , once you've gotten your FIPS provider version issues sorted, I have a few suggestions for you to check out with regard to the original certificate-related connectivity issue that you posted about...
Hope this is helpful in your connectivity troubleshooting. Thanks, |
Hi Fixed the FIPS provider version issues but still seeing same error. hsm-pqc1@hsmpqc1-ThinkPad-P43s:~/Desktop/libacvp$ ./app/acvp_app -v ACVP library version: libacvp_oss-2.1.1 Compiled SSL version: OpenSSL 3.0.2 15 Mar 2022
FIPS Provider Version: 3.0.2 hsm-pqc1@hsmpqc1-ThinkPad-P43s:~/Desktop/libacvp$ ./app/acvp_app --aes --vector_req vectors.req Using the following parameters:
[ACVP]: Logging in... i am using "mozzila_trust_anchors.pem" cert Thanks, |
----------------curl------------------ sm-pqc1@hsmpqc1-ThinkPad-P43s: /Desktop/libacvp$ curl -V hsm-pqc1@hsmpqc1-ThinkPad-P43s:~ /Desktop/libacvp$ ldd /usr/bin/curl | grep libcrypto |
@chenchudhcs Good to hear about the change back to the correct PEM bundle. Please confirm the remaining points I listed to check out have also been addressed. Also, in future connectivity testing, please run the |
sysint@sjfw4-ubuntu-3:~/demo-server/libacvp$ ./app/acvp_app --verbose --aes
This is falling under openssl version < 3.0Using the following parameters:
[ACVP]: HTTP User-Agent: libacvp/2.1.1;Linux;6.5.0-14-generic;x86_64;Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz;GCC/11.4.0
[ACVP]: Logging in...
[ACVP][ERROR]: Curl failed with code 60 (SSL peer certificate or SSH remote key was not OK)
[ACVP]: POST Login...
Status: 0
Url: https://demo.acvts.nist.gov:443/acvp/v1/login
Resp: Recieved
[ACVP][ERROR]: Received no response from server.
[ACVP][ERROR]: Login Send Failed
[ACVP][ERROR]: Failed to login with ACVP server
--------curl -v -----------------
sysint@sjfw4-ubuntu-3:~/demo-server/libacvp$ curl -V
curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.16
Release-Date: 2022-01-05
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets zstd
The text was updated successfully, but these errors were encountered: