5.WSS的Certificate PEM

Websockets需要使用SSL憑證,需要Websockets Server的憑證,而Synology DDNS提供很多憑證,包含

而要使用的是chain.pem

兩種做法:

step 1

把chain.pem覆蓋專案/main/mqtt_eclipseprojects_io.pem

使用idf.py menuconfig -> Example Configuration -> () Server certificate override 然後將chain.pem去除所有換行(只有一行)後貼上

step 2

替換完憑證後,一樣使用
idf.py menuconfig -> Example Configuration -> 設定Broker URL

Visited 5 times, 1 visit(s) today

留言

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *