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
asked 10 months ago223 views
1 Answer
0
Accepted Answer

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
EXPERT
answered 10 months ago
  • Thanks for your answer, it looks like Unity only support SHA1 :( Have a nice day.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions