You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First: Thank you very much for your excellent work!
Board: Teensy 4.1
IDE: Platformio
Latest version of NativeEthernet library
I successfully followed the example 'WebClientRepeatingTLS' and could read from the page 'pjrc.com/about/contact.html'.
However I was not successful to get rootCa verification working. Is it supported?
I downloaded the root certificate DST Root CA X3 in the base64 encoded form from pjrc.com.
Initialize Ethernet with DHCP:
DHCP assigned IP 192.168.1.102
You're connected to the network, IP = 192.168.1.102
TLS ca certificate error.
connecting...
HTTP/1.1 400 Bad Request
Date: Sun, 14 Mar 2021 18:10:08 GMT
Server: Apache/2.4.18 (Ubuntu)
Strict-Transport-Security: max-age=15552000
Cache-Control: stale-while-revalidate=30
Content-Length: 441
Connection: close
Content-Type: text/html; charset=iso-8859-1
<title>400 Bad Request</title>
Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
Apache/2.4.18 (Ubuntu) Server at www.pjrc.com Port 443
SockIndex: 0 SockStatus: 17 RecvErr: -26
SockIndex: 0 SockStatus: 17 RecvErr: -26
......
......
......
Thanks in advance
The text was updated successfully, but these errors were encountered:
RoSchmi
changed the title
Please add example for TLS rootCa verifcation
Please add example for TLS rootCa verification
Mar 14, 2021
First: Thank you very much for your excellent work!
Board: Teensy 4.1
IDE: Platformio
Latest version of NativeEthernet library
I successfully followed the example 'WebClientRepeatingTLS' and could read from the page 'pjrc.com/about/contact.html'.
However I was not successful to get rootCa verification working. Is it supported?
I downloaded the root certificate DST Root CA X3 in the base64 encoded form from pjrc.com.
const char *dst_root_ca =
"-----BEGIN CERTIFICATE-----\n"
"MIIDSjCCAjKgAwIBAgIQRK+wgNajJ7qJMDmGLvhAazANBgkqhkiG9w0BAQUFADA/\n"
"MSQwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMT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2CNTUQ\n"
"-----END CERTIFICATE-----";
and entered the certificate through:
But I got error messages:
Initialize Ethernet with DHCP:
<title>400 Bad Request</title>DHCP assigned IP 192.168.1.102
You're connected to the network, IP = 192.168.1.102
TLS ca certificate error.
connecting...
HTTP/1.1 400 Bad Request
Date: Sun, 14 Mar 2021 18:10:08 GMT
Server: Apache/2.4.18 (Ubuntu)
Strict-Transport-Security: max-age=15552000
Cache-Control: stale-while-revalidate=30
Content-Length: 441
Connection: close
Content-Type: text/html; charset=iso-8859-1
Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
Apache/2.4.18 (Ubuntu) Server at www.pjrc.com Port 443 SockIndex: 0 SockStatus: 17 RecvErr: -26 SockIndex: 0 SockStatus: 17 RecvErr: -26 ...... ...... ...... Thanks in advance
The text was updated successfully, but these errors were encountered: