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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则