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
gefragt vor einem Jahr230 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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
EXPERTE
beantwortet vor einem Jahr
  • Thanks for your answer, it looks like Unity only support SHA1 :( Have a nice day.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen