Skip to content

Commit

Permalink
feat(ESPAT-2072): Added the support for certificate configuration in …
Browse files Browse the repository at this point in the history
…websocket
  • Loading branch information
ustccw committed Sep 24, 2024
1 parent 97ff011 commit 18255f6
Show file tree
Hide file tree
Showing 21 changed files with 157 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/at/lib/VERSION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ESP32: 9c3f527
ESP32C3: 9c3f527
ESP32C2: 9c3f527
ESP32C5: 9c3f527
ESP32C6: 9c3f527
ESP32S2: 9c3f527
ESP32: 2dd43f3
ESP32C3: 2dd43f3
ESP32C2: 2dd43f3
ESP32C5: 2dd43f3
ESP32C6: 2dd43f3
ESP32S2: 2dd43f3
Binary file modified components/at/lib/libesp32_at_core.a
Binary file not shown.
Binary file modified components/at/lib/libesp32_at_core_silence.a
Binary file not shown.
Binary file modified components/at/lib/libesp32c2_at_core.a
Binary file not shown.
Binary file modified components/at/lib/libesp32c2_at_core_silence.a
Binary file not shown.
Binary file modified components/at/lib/libesp32c3_at_core.a
Binary file not shown.
Binary file modified components/at/lib/libesp32c3_at_core_silence.a
Binary file not shown.
Binary file modified components/at/lib/libesp32c5_at_core.a
Binary file not shown.
Binary file modified components/at/lib/libesp32c5_at_core_silence.a
Binary file not shown.
Binary file modified components/at/lib/libesp32c6_at_core.a
Binary file not shown.
Binary file modified components/at/lib/libesp32c6_at_core_silence.a
Binary file not shown.
Binary file modified components/at/lib/libesp32s2_at_core.a
Binary file not shown.
Binary file modified components/at/lib/libesp32s2_at_core_silence.a
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ AT_EAP_COMMAND_SUPPORT=y wpa2_ca
AT_MQTT_BROKER_AUTH_CLIENT=y mqtt_cert
AT_MQTT_BROKER_AUTH_CLIENT=y mqtt_key
AT_MQTT_CLIENT_AUTH_BROKER=y mqtt_ca
AT_WSS_SERVER_AUTH_CLIENT=y wss_cert
AT_WSS_SERVER_AUTH_CLIENT=y wss_key
AT_WSS_CLIENT_AUTH_SERVER=y wss_ca
AT_CUSTOMIZED_PARTITION_TABLE_SUPPORT=y factory_param
AT_CUSTOMIZED_PARTITION_TABLE_SUPPORT=y mfg_nvs
20 changes: 20 additions & 0 deletions components/customized_partitions/raw_data/wss_ca/wss_ca_00.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
-----BEGIN CERTIFICATE-----
MIIDNjCCAh6gAwIBAgIUelwnPikNHqHVs6nvMRcxr6f3494wDQYJKoZIhvcNAQEL
BQAwNjELMAkGA1UEBhMCQ04xFTATBgNVBAoMDEVTUFJFU1NJRiBBVDEQMA4GA1UE
AwwHUm9vdCBDQTAeFw0yNDA5MTkwOTMzMzlaFw0zNDA5MTcwOTMzMzlaMDYxCzAJ
BgNVBAYTAkNOMRUwEwYDVQQKDAxFU1BSRVNTSUYgQVQxEDAOBgNVBAMMB1Jvb3Qg
Q0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC9bAAe6bIhDWusc4Zl
t3lzHPcqy9TtLKk9fpKVLsNg3ttqbxBE6LLSIyxDqlBXr2k2tzXCqflAXxne4/vU
h2A/f4PaV0S6qA/hX0/KN+Vzmx7ACd9s7Y997VKILq1PIeztkgHLgm8xanJEoCwY
e4tBYm0AMbtTJrvEHMiycf63siBg3Ql7fhLCLK1c/yPhbpDCItgN8gJ4MkO5fbl8
Pbgs8ublE5V9AFUenubJBklY2Y9XPnXsBO2LyxWs/HU3jUE67eEH52Fa+UUP9c1c
aOdvd9p7jdVh3UCNoi6Zhoiq4/j/QVK/VYR9pTYDepUuUDP/lyUkp4udORAW9/l6
CDd9AgMBAAGjPDA6MAwGA1UdEwQFMAMBAf8wCwYDVR0PBAQDAgGmMB0GA1UdDgQW
BBQ2tC03EPS1qlRzNzwzCWeE9kTzhjANBgkqhkiG9w0BAQsFAAOCAQEABjrs/LHM
iFodfPy2lnH2RsYvrtKPiKSzSoWIRRZDzOD+6k2MGRHUzJPgVZVe7/jIPs9LvwBJ
2myTRbSDhIGbxxxslETUr5ILV6CKvOMsNyxxd/vCmVaX6zckwZdEM2VXubYiURgd
F2qNYJC8UD/uXONPg1hsEjgGiS/nBYgHQD9/swCaodirB0qhAsWdanDnOOwRO2Go
+mSmt+UNntJ84xNsgdmz16UPNbBY+g4EsTGzdVA+EOXh4OKHPIWiggn9RXqhpAUJ
3kr+tNrwy+Cuvwjp07dyH/5KhVoP4MMuwuWHOBKDL1qdIYnvDBugvQOfEHvgm/p+
HnVmMqNyMC4s4w==
-----END CERTIFICATE-----
20 changes: 20 additions & 0 deletions components/customized_partitions/raw_data/wss_ca/wss_ca_01.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
-----BEGIN CERTIFICATE-----
MIIDNjCCAh6gAwIBAgIUJr9Tfy1IE0XtRs1OlQbk4TbVS0gwDQYJKoZIhvcNAQEL
BQAwNjELMAkGA1UEBhMCQ04xFTATBgNVBAoMDEVTUFJFU1NJRiBBVDEQMA4GA1UE
AwwHUm9vdCBDQTAeFw0yNDA5MjAwNzIwMTdaFw0zNDA5MTgwNzIwMTdaMDYxCzAJ
BgNVBAYTAkNOMRUwEwYDVQQKDAxFU1BSRVNTSUYgQVQxEDAOBgNVBAMMB1Jvb3Qg
Q0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC584yFqRLcPcFAkg3K
JhbOFDSnAy8WRAWlkWcSjeDhggOB0XsHUTRRog8SpAkSNWjd+cet+ShwX4q4xzK3
9ezdikdff5Uck43Jesq5kJJeU2FikM1pZSXhDp9CbaIKUEBYPxxzHpN2gwQnpsam
DSmU5kMxWqz7ApFB7OvuoF1X0CvDivy/tbROqbmsRiKxXrP6LXW/iU8GexSc79IP
cKy+P2074GMvvLyoptMaMTJDpNlC4b4eQd7LJqX9YDuayyeDj5Qa4V4clINUgE7E
oETMs/DsJhNzfl51tBY8aekPzX01HFX6yHsJfxCYd+ytnLvJkaFISQAsoUWizJvq
MKn7AgMBA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Xi8RZyuDcoqhMzaSvclWE1U9X92zLyHhW
LdmVhA9beuyOShB5bRJFDcYaXi+mqdPUJfmxOTw+WmKaCtKIC4mt2rx2LIPKYQAd
CtgF2z7h/vo7RH30xAfwBarXdxu/Jfo0AUfdYcs3hQubXPUeNW4QA1iRAV7XPtFz
gPqmbuom/6u8xxotlsuryg7+5+rINZ2le+Pp9JDeUNq5TQET6cdQFN/LjaDsrr30
F0ytqPoqfMF8fc0/qAdOc35H7umrns3zXEcvMqYWEqWdd1ZucoaX7OKnNsusbXd6
jQIDAQABo10wWzAMBgNVHRMEBTADAQH/MAsGA1UdDwQEAwIBpjAdBgNVHQ4EFgQU
LOtkBR+qeP3dsC0pYpxz2r7iM1gwHwYDVR0jBBgwFoAU3/3LzSJtxUowyAY8Ce3N
mUOhtKYwDQYJKoZIhvcNAQELBQADggEBACYPB1tgwlIck/Z2UeaHIzs7G05UJVwa
PJnGGmgtFzezT4uFgYF/3AVdUuswZymHBTCbQMLTAS2CxDz5P8Wp0pWr3m42B0IE
tnT9SFVzIdxDJy/ltaJEM+vA3kGc8zMChQTp0vG/13P8Z8czfVdS/UGA5OAviLGa
UPRlQ59Yt/ne4jyfaNyDioU6K3MSf7bH4yArto4jtkVaoAZYi3AyAytmsh3B2PN/
5Dl+RgAfYAb4+HhijHApaGSc3V49XgrxDcFISGr4mOmX1PIlCf4EcEI6+7k05loI
ppe+gHNHHTI2ur5KpiGuQm34f507NM85RgmvMcaiHUHFoQN/bl22360=
-----END CERTIFICATE-----
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDp8Qf3NzyTknRP
r8UcCDRO2eQst5FQcALnPuS0aP5SHz37RM8qY5pnBmC3U7MqU1WKIGyNDYcMPhLH
pKyYOO08pph5BAyqZPWuv+LzNnRoz1oGYt/g1KXFiM8gpwT6PAEq1NVElt1FaF/n
BqvBNhJNoVa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GBAMuK
wJDk573S2dWtPiFvu+gtiJ46C1XDpvuor6o2T+01sDg5FPgSr6C7VdsXWDKuUGre
Jf/gjlaW5jbzKC3eL8uJiEtXlYoLIwKaK0RNp7gDaz2awAa7AzSCI8x1zVJQ0gmS
HL6QEnCxdE4UdhhV9Os9+59mB6n4wUbveTsYtGoBAoGBAKxn3jCZ0T8CtL5EVeRk
uh1Zb+Fjl1ecOpdnYPlPJsnhdmoAGwwXqZihQIVaMBTeXLWXDbyKt/pmQ0Bb7PMm
mn9HsFwG06o9M/HBTzg6IFpzZzk433aXZiIUaeM0zAAdhyJROi5BjAExLkp311QA
vgfMLXH1Th7PHrSW+ufZYfF0
-----END PRIVATE KEY-----
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCpHSNn07SONLIf
4CWk73dNMhiIza5sc5oCAzEYYauGznpRkbilRpeLxFnK4NyiqEzNpK9yVYTVT1f3
bMvIeFYt2ZWED1t67I5KEHltEkUNxhpeL6ap09Ql+bE5PD5aYpoK0ogLia3avHYs
g8phAB0K2AXbPuH++jtEffTEB/AFqtd3G78l+jQBR91hyzeFC5tc9R41bhADWJEB
Xtc+0XOA+qZu6ib/q7zHGi2Wy6vKDv7n6sg1naV74+n0kN5Q2rlNARPpx1AU38uN
oOyuvfQXTK2o+ip8wXx9zT+oB05zfkfu6auezfNcRy8yphYSpZ13Vm5yhpfs4qc2
y6xtd3qNAgMBAAECggEAHGKp7fQ8tu7U5CFLKEVShMhPEm1VpNn9hG91Nuaz8/9l
zBm1wLYZ20mkmbdHCV1O8Oh+02XT0zsLZJokFVzPeEgwfrdWL0qT8o4T15Esuoxh
IiSE6LYHwq0HyHfabnDk8sKWN7uPDSs7earQVho/BbIvP3btV484Uf2DT0EW0lhu
ECZaD7MbT5J1bowCC64qrXMYOtZXWu3NTDfY4SVYLPW1Vr5VNJXH57GzEuZnrKQ4
DEwSgja8/SCboWIzwgz/jXsKlsgpHWAXSMMnwZo3A82nkal8w2rnCAbK0MIuKNbe
G1dECpKXhmtCSjPS06aPHzScwRNy+RKqrTMmQxt90QKBgQDT5ydR9eOevdvL/o7y
8luBYRGpTstpdfHPrEtSrROwNejUTr/338ihAb/JARNsLmHvSuj4mbi4jASXVw/G
uy8x6DqIYt/S1Y4c2Z0NDhMte5tSwVs645f+6R8OtSQxbaRY0yQLvFo4ErWn6vNZ
ZLjvwjDHP4IfGEx0qJguC6mfsQKBgQDMTnOLxaqWkvdPq3NQ65skcqnZE+Lw/mtO
Ms90vo7tB9m+zJicokCjwbtZrHaFLeRT+xgBapwPtvDD2iZSSehBWcQAPD8+y6nA
mljo48dqU+HqXtlMa/I25iGkdwhZzbZaIem489bRB3gEamN6IJhZ6O8UrFMr7sg6
Fk6Maj77nQKBgQCbFJHPRvBl7bcdbVh67uoPHtZJHXR64ymsfgDGKgq9rEaQkm2l
3+45/0i3t4TaaHueICmuPvpUfYyiocHXBIj+smGcDRiXeVk/PffVZRad89dx0jaN
O6GymjPzlJg/YGml5Ch+OkOgw/iUQrwEEVXTikAeohj93s+dlQGCuWBTkQKBgC2p
+zlqXM562rv73jJf9rUWy8+xGjAzLVi1EplNXjSsZIa4xAN+YGQ5kN5iJbtunnIG
1T67zVXV1cpwn9AUpMy2e5Bx5tDqRG7AEM882f1x8jSoLnleRyzuEubnk/4+dFuA
6PRly8W8nZ6fCMzrLCIsZgOA4LYZELeq9LN9q8YhAoGAK+8RcPb18HCQXpFS3quo
BIqypgbA1ya0wv4lavltdFb/GtMGHIsUX2agJV43A1f4ThpOrWLY9U1LWlNPtv2c
fBaG7MSLt7RCvSeJWeIsB6bUHKY/VwudojXeGKnCtqtrkwWVwcRWKWlUcsSE4ZzL
hNxq4nv5uJISP4FOEGhdx28=
-----END PRIVATE KEY-----
12 changes: 12 additions & 0 deletions main/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,18 @@ config AT_WS_COMMAND_SUPPORT
default "n"
depends on AT_ENABLE

menu "AT WebSocket authentication method"
depends on AT_WS_COMMAND_SUPPORT

config AT_WSS_SERVER_AUTH_CLIENT
bool "Server authenticates clients"
default y

config AT_WSS_CLIENT_AUTH_SERVER
bool "Client authenticates server"
default y
endmenu

config AT_BLE_COMMAND_SUPPORT
bool "AT ble command support."
default "y" if !IDF_TARGET_ESP32C2
Expand Down

0 comments on commit 18255f6

Please sign in to comment.