Skip to content
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

[OOB_5_4] tls-client "X509 - Certificate verification failed" using IAR #56

Closed
sunsmilearm opened this issue Mar 2, 2017 · 7 comments
Closed

Comments

@sunsmilearm
Copy link

Log is:

Using Ethernet LWIP
Client IP Address is 10.169.36.60
Connecting with developer.mbed.org
Starting the TLS handshake...
mbedtls_ssl_handshake() failed: -0x2700 (-9984): X509 - Certificate verification failed, e.g. CRL, CA or signature check failed
MBED: Socket Error: -1
@0xc0170
Copy link
Contributor

0xc0170 commented Mar 2, 2017

Please when reporting an issue, provide as much details as you can. What commands did you use, what target, what toolchain (version as well). Think about how to reproduce this by another user. Thanks

@simonbutcher
Copy link
Contributor

@sunsmilearm - Can you please confirm what the board was? This will be a board specific issue.

@sunsmilearm
Copy link
Author

sunsmilearm commented Mar 3, 2017

@sbutcher-arm Sorry, forget to mention that the platform is Ublox Odin W2

Tool chain:
IAR C/C++ Compiler for ARM
7.70.2.11706 (7.70.2.11706)

command is simply mbed compile -t IAR -m UBLOX_EVK_ODIN_W2

@simonbutcher
Copy link
Contributor

This should be fixed in RC2 by ARMmbed/mbed-os#3871

Please retest.

@bridadan
Copy link

bridadan commented Mar 7, 2017

I just retested this and everything worked.

mbed-os-example-tls commit: 4cc386327c21917c0d5e1445f2ad1f068ebe24b9

IAR verison:

$ iccarm --version
IAR ANSI C/C++ Compiler V7.80.1.11864/W32 for ARM

Log output from device:

Using Ethernet LWIP
Client IP Address is 10.118.14.103
Connecting with developer.mbed.org
Starting the TLS handshake...
TLS connection to developer.mbed.org established
Server certificate:
    cert. version     : 3
    serial number     : 11:21:B8:47:9B:21:6C:B1:C6:AF:BC:5D:0C:19:52:DC:D7:C3
    issuer name       : C=BE, O=GlobalSign nv-sa, CN=GlobalSign Organization Validation CA - SHA256 - G2
    subject name      : C=GB, ST=Cambridgeshire, L=Cambridge, O=ARM Ltd, CN=*.mbed.com
    issued  on        : 2016-03-03 12:26:08
    expires on        : 2017-04-05 10:31:02
    signed using      : RSA with SHA-256
    RSA key size      : 2048 bits
    basic constraints : CA=false
    subject alt name  : *.mbed.com, mbed.org, *.mbed.org, mbed.com
    key usage         : Digital Signature, Key Encipherment
    ext key usage     : TLS Web Server Authentication, TLS Web Client Authentication
Certificate verification passed

HTTPS: Received 437 chars from server
HTTPS: Received 200 OK status ... [OK]
HTTPS: Received 'Hello world!' status ... [OK]
HTTPS: Received message:

HTTP/1.1 200 OK
Server: nginx/1.7.10
Date: Tue, 07 Mar 2017 19:27:19 GMT
Content-Type: text/plain
Content-Length: 14
Connection: keep-alive
Last-Modified: Fri, 27 Jul 2012 13:30:34 GMT
Accept-Ranges: bytes
Cache-Control: max-age=36000
Expires: Wed, 08 Mar 2017 05:27:19 GMT
X-Upstream-L3: 172.17.0.4:80
X-Upstream-L2: developer-sjc-cyan-2-nginx
Strict-Transport-Security: max-age=31536000; includeSubdomains

Hello world!

@sunsmilearm
Copy link
Author

Fixed. Thanks.

@bridadan
Copy link

bridadan commented Mar 8, 2017

@sunsmilearm Could you close this issue then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants