Other Intune-related topics, including unsupported scenarios and platform-specific behaviors
looks like $(openssl rand 32 | base64) does work but now the upload fails to commit.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have this json to commit a lob pkg:
{"fileEncryptionInfo": {"encryptionKey": "fea98d9079db2b08446d6163ca1cabb2","initializationVector": "22957e909d50f58f393333fd34cd1c70","mac": "4d3ce6bb050301cafd8f433e305640992832fcadf1d32d0138e7adb1412e8206","macKey": "d77b99406783d05f12ba1489da3340c2","profileIdentifier": "ProfileVersion1","fileDigest": "e6ca6fc13195b8e98b1a93ffdf08cd20f39b65afce48c287474653b8130f7cd9","fileDigestAlgorithm": "SHA256"}}
But I get this error:
ProfileVersion1 requires an EncryptionKey that is 32 bytes long. - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000
Why is graph not accepting my enryption key?
Other Intune-related topics, including unsupported scenarios and platform-specific behaviors
An API that connects multiple Microsoft services, enabling data access and automation across platforms
looks like $(openssl rand 32 | base64) does work but now the upload fails to commit.
Doesn't work with either, I tried strEncryptionKey=$(openssl rand -hex 16) and strEncryptionKey=$(openssl rand -hex 32), also tried strEncryptionKey=$(openssl rand -hex 16) | base64) and strEncryptionKey=$(openssl rand -hex 32 | base64). Also, when using x-graph and viewing the javascript logging, I see that the value is 44 bytes which seems to be 32 bytes in base64.
@Mattheis, Dirk, Thanks for posting in Q&A. From the error message, I find the error is caused that the EncryptionKey you provided is not 32 bytes long. Based on my researching, one byte is the range 00000000 - 11111111 in binary, or 0x00 - 0xFF in hex. As you can see, one byte is represented in hex as a 2 characters string. Therefore, a 32-byte hex string is 64 characters long.
In the json, I notice the "encryptionKey" is only 32 characters. Please increase it to 64 characters to see if it works.
Hope the above information can help.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.