{"id":3991,"date":"2020-07-19T01:03:01","date_gmt":"2020-07-18T16:03:01","guid":{"rendered":"https:\/\/www.motohasi.net\/blog\/?p=3991"},"modified":"2021-03-23T23:00:43","modified_gmt":"2021-03-23T14:00:43","slug":"esp8266arduinobearssl%e3%81%a7https%e6%8e%a5%e7%b6%9a","status":"publish","type":"post","link":"https:\/\/www.motohasi.net\/blog\/?p=3991","title":{"rendered":"ESP8266+Arduino+BearSSL\u3067HTTPS\u63a5\u7d9a"},"content":{"rendered":"\n<p>\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306eHTTPS\u5316\u304c\u9032\u307f\u3001IoT\u30c7\u30d0\u30a4\u30b9\u306aESP8266\u3067\u3082HTTPS\u63a5\u7d9a\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u3002<br \/>2020\u5e74\u306eESP8266\u3067\u306eHTTPS\u63a5\u7d9a\u306e\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u306fBearSSL\u306e\u69d8\u3067\u3059\u304c\u8a66\u3057\u305f\u969b\u306b\u30cf\u30de\u308a\u30dd\u30a4\u30f3\u30c8\u304c\u3042\u3063\u305f\u306e\u3067\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6c4e\u7528\u7684\u306a\u6b63\u898f\u306eHTTPS\u63a5\u7d9a\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306f CertStoreBearSSL \u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30b5\u30f3\u30d7\u30eb\u306e\u6240\u306b\u3042\u308b certs-from-mozilla.py \u3092\u4f7f\u7528\u3057\u3066 certs.ar \u3092\u4f5c\u3063\u3066\u304a\u304d SPIFFS \u3084 LittleFS \u306b\u683c\u7d0d\u3057\u4f7f\u7528\u3057\u307e\u3059\u3002Windows\u74b0\u5883\u3067 certs.ar \u306e\u4f5c\u6210\u306b\u306f\u3001OpenSSL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u5b9f\u884c\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b ar.exe \u306e\u7528\u610f\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u6e96\u5099\u3057\u3066\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u306f\u3001setInsecure() \u3092\u6307\u5b9a\u3057\u3066 X509\u306e\u78ba\u8a8d\u3092\u884c\u308f\u305b\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3069\u3061\u3089\u306e\u65b9\u6cd5\u3092\u3068\u3063\u305f\u3068\u3057\u3066\u3082\u3001BearSSL\u306f\u63a5\u7d9a\u3054\u3068\u306b22KB\u307b\u3069\u30e1\u30e2\u30ea\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002\u5148\u7a0b\u306e\u8a3c\u660e\u66f8\u3092\u4f7f\u7528\u3059\u308c\u3070\u66f4\u306b\u30e1\u30e2\u30ea\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\u30cf\u30de\u308a\u30dd\u30a4\u30f3\u30c8\u3068\u3044\u3046\u306e\u304c\u3053\u306e\u30e1\u30e2\u30ea\u3067\u3059\u3002<br \/>\u30e1\u30e2\u30ea\u304c\u8db3\u308a\u306a\u304f\u3066\u3082\u30c7\u30d0\u30c3\u30b0\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u306a\u3044\u3068\u30e1\u30e2\u30ea\u304c\u8db3\u308a\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u305b\u3093\u3002<br \/>\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8a18\u8ff0\u3001\u547c\u3073\u51fa\u3057\u65b9\u304c\u6b63\u3057\u3044\u3068\u601d\u3063\u3066\u3044\u3066\u3082\u300c\u6b63\u5e38\u306b\u63a5\u7d9a\u3067\u304d\u306a\u3044\u300d\u5834\u5408\u306f\u30e1\u30e2\u30ea\u4e0d\u8db3\u3092\u7591\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u3001\u74b0\u5883\u306b\u4f9d\u5b58\u3057\u307e\u3059\u304c\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u9818\u57df\u306b50%\u4ee5\u4e0a\u306e\u7a7a\u304d\u306f\u5fc5\u8981\u306a\u69d8\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306eHTTPS\u5316\u304c\u9032\u307f\u3001IoT\u30c7\u30d0\u30a4\u30b9\u306aESP8266\u3067\u3082HTTPS\u63a5\u7d9a\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u30022020\u5e74\u306eESP8266\u3067\u306eHTTPS\u63a5\u7d9a\u306e\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u306fBearSSL\u306e\u69d8\u3067\u3059\u304c\u8a66\u3057\u305f\u969b\u306b\u30cf\u30de\u308a\u30dd\u30a4\u30f3\u30c8\u304c\u3042 &hellip; <a href=\"https:\/\/www.motohasi.net\/blog\/?p=3991\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,34],"tags":[],"class_list":["post-3991","post","type-post","status-publish","format-standard","hentry","category-arduino","category-esp8266"],"_links":{"self":[{"href":"https:\/\/www.motohasi.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.motohasi.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.motohasi.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.motohasi.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.motohasi.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3991"}],"version-history":[{"count":3,"href":"https:\/\/www.motohasi.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3991\/revisions"}],"predecessor-version":[{"id":3994,"href":"https:\/\/www.motohasi.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3991\/revisions\/3994"}],"wp:attachment":[{"href":"https:\/\/www.motohasi.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.motohasi.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.motohasi.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}