2018-01-13 06:07 AM
Hello Everyone,
Even if I load the DER binary format into my wifi-module SPW40SA , The subject key identifier won't be detected automatically by the module. I have to manually add the key and if I try the simple AT+S.HTTPGET demostrated in AN4963 document for the
i get Certificate error:23(The CA could not be found) . I even tried with the PEM format also but still the same error exists .Does anyone have the same problem or any hint on how to resolve this issue ?
#wifi #certificate #spwf40sa #tlscert2018-01-18 01:43 AM
Hello Rohan,
Below you can find the log I get with my SPWF04SA module.
Few guesses:
- about the SubjectKeyId is not automatically extracted when loading DER certificate, maybe the certificate was not properly saved/converted. I downloaded the Root CA (VeriSignClass3PublicPrimaryCertificationAuthority-G5 from my location) certificate in PEM format and then I converted it to DER by:
openssl x509 -in VeriSignClass3PublicPrimaryCertificationAuthority-G5.crt -out VeriSignClass3PublicPrimaryCertificationAuthority-G5.der -outform DER
- about Certificate error:23, it may be a direct consequence of previous point, or maybe the certificate is incorrect or the auth field is incorrect.
Following my log:
AT+S.TLSCERT=ca,1239
AT-S.SubjectKeyId:7F:D3:65:A7:C2:DD:EC:BB:F0:30:09:F3:43:39:FA:02:AF:33:31:33AT-S.OKAT+S.HTTPGET=www.amazon.com,,443,2,,,,AT-S.Skip CAAT-S.Loading:1:2AT-S.Http Server Status Code:20078b7<!doctype html><html class='a-no-js' data-19ax5a9jf='dingo'><!-- sp:feature:head-start -->(**** about 300KB of data ****)
<!-- _
.__(.)< (MEOW) \___) ~~~~~~~~~~~~~~~~~~--><!-- sp:eh:yjfKwX939PaydD937gOR9o3LB3mpKMX5Sldv61bcWVPrzj1wR2lzfIAipZeinV8Erkffbg21v/Cfi0w03qcrJmfDdp4K8NlKoQwrlc4CajkTVTTJE500qA== -->AT-S.OK