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
posta un anno fa231 visualizzazioni
1 Risposta
0
Risposta accettata

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
ESPERTO
con risposta un anno fa
  • Thanks for your answer, it looks like Unity only support SHA1 :( Have a nice day.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande