Problem with AWS IoT Device Certificate on Unity

0

Hi, I'm trying to integrate AWS IoT Core to my Unity project. However, i'm currently having problem with device certificate. I'm using System.Security.Cryptography.X509Certificates library and below is my function. Enter image description here I used Openssl to covert the device certificate from pem to pfx file with the private key. When i run the program, it return this error.Enter image description here A post on stackoverflow (https://stackoverflow.com/questions/74884020/m2mqtt-argument-exception-unsupported-hmac) suggests to change the hash algorithm to SHA-1. However, another error pop up.Enter image description here How can i fix this issues? Thanks and have a good day!

qng12
已提問 1 年前檢視次數 230 次
1 個回答
0
已接受的答案

AWS IoT supports the following certificate-signing algorithms:

  • SHA256WITHRSA
  • SHA384WITHRSA
  • SHA512WITHRSA
  • DSA_WITH_SHA256
  • ECDSA-WITH-SHA256
  • ECDSA-WITH-SHA384
  • ECDSA-WITH-SHA512

Reference : https://docs.aws.amazon.com/iot/latest/developerguide/x509-client-certs.html

profile pictureAWS
專家
已回答 1 年前
  • Thanks for your answer, it looks like Unity only support SHA1 :( Have a nice day.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南