Intel Confidential Computing
Discussion board focused on Intel Confidential Computing technologies and how they can protect data and AI security, privacy, and sovereignty.

Testing Remote Attestation with curl

jgnoonan
New Contributor I
2,328 Views

I am trying to test remote attestation using curl.  I've generated a quote.dat but when I run the below command, I get the following results:

curl -X POST "https://api.trustedservices.intel.com/sgx/attestation/v4/report" -H "Ocp-Apim-Subscription-Key: <my primary key>" -H "Content-Type: application/json" --data-binary "@quote.dat"

{ "statusCode": 401, "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription."

 

I have subscribed to the following services on my Intel account:

Product Intel® Software Guard Extensions Provisioning Certification Service

Product DEV Intel® Software Guard Extensions Attestation Service (Linkable) subscription

Product Intel® Software Guard Extensions Registration Service subscription

I am using the Primary key from the second service on this list.  What am I doing wrong?

Labels (3)
0 Kudos
2 Replies
Scott_R_Intel
Moderator
2,271 Views

Hello.

 

Per the latest IAS documentation, to use the DEV environment, you must use the https://api.trustedservices.intel.com/sgx/dev base url, and also API version 5 is available.  For example:  https://api.trustedservices.intel.com/sgx/dev/attestation/v5/report 

 

Regards.

0 Kudos
jgnoonan
New Contributor I
2,246 Views

@Scott_R_Intel  Thank you so much for the quick response!  That worked perfectly!

0 Kudos
Reply