无法在 ESP32 上与 google 云语音转文本执行握手。 [PK - 公钥标签或值无效(仅支持 RSA 和 EC)]

问题描述 投票:0回答:1

我正在尝试与speech.googleapis.com 建立连接。我正在使用 https://github.com/MhageGH/esp32_CloudSpeech/tree/master/esp32_CloudSpeech 中的代码。我修改了network_param.h,以便正确设置证书。我还在谷歌云上创建了ApiKey并将其添加到network_param.h中。

我尝试使用 API 枚举创建 CloudSpeechClient()。

CloudSpeechClient* cloudSpeechClient = new CloudSpeechClient(USE_APIKEY);

我遇到了这个错误,说 pubkey 标签或值无效。

[  1062][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 0 - WIFI_READY
[  1151][V][WiFiGeneric.cpp:340] _arduino_event_cb(): STA Started
[  1155][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 2 - STA_START
[  1166][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
[  3039][V][WiFiGeneric.cpp:362] _arduino_event_cb(): STA Disconnected: SSID: AndroidAP_2200, BSSID: f6:03:d0:52:38:e8, Reason: 202
[  3040][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED
[  3047][W][WiFiGeneric.cpp:1057] _eventCallback(): Reason: 202 - AUTH_FAIL
[  3054][D][WiFiGeneric.cpp:1077] _eventCallback(): WiFi Reconnect Running
[  3075][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
[  3811][V][WiFiGeneric.cpp:355] _arduino_event_cb(): STA Connected: SSID: AndroidAP_2200, BSSID: f6:03:d0:52:38:e8, Channel: 11, Auth: WPA2_PSK
[  3814][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
[  3862][V][WiFiGeneric.cpp:369] _arduino_event_cb(): STA Got New IP:192.168.78.11
[  3863][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
[  3866][D][WiFiGeneric.cpp:1098] _eventCallback(): STA IP: 192.168.78.11, MASK: 255.255.255.0, GW: 192.168.78.68
[  4376][V][ssl_client.cpp:62] start_ssl_client(): Free internal heap before TLS 103340
[  4377][V][ssl_client.cpp:68] start_ssl_client(): Starting socket
[  4478][V][ssl_client.cpp:146] start_ssl_client(): Seeding the random number generator
[  4480][V][ssl_client.cpp:155] start_ssl_client(): Setting up the SSL/TLS structure...
[  4484][V][ssl_client.cpp:178] start_ssl_client(): Loading CA cert
[  4495][V][ssl_client.cpp:254] start_ssl_client(): Setting hostname for TLS session...
[  4497][V][ssl_client.cpp:269] start_ssl_client(): Performing the SSL/TLS handshake...
[  4594][E][ssl_client.cpp:37] _handle_error():[start_ssl_client():273]: (-15104) PK - The pubkey tag or value is invalid (only RSA and EC are supported)
[  4597][E][WiFiClientSecure.cpp:144] connect(): start_ssl_client: -15104
[  4605][V][ssl_client.cpp:321] stop_ssl_socket(): Cleaning SSL connection.

不确定如何以更好的方式格式化它 - 也许图像会更好。 Traces in image format

我尝试更改证书并重新生成 API 代码。我尝试减少对 API 密钥的限制。我希望它能顺利连接:/.

c++ esp32 google-speech-api google-cloud-speech esp8266wifi
1个回答
0
投票

嗨,你想通了吗?

© www.soinside.com 2019 - 2024. All rights reserved.