Azure-Samples / DoubleKeyEncryptionService

Download, install, and set up the Double Key Encryption service for Microsoft 365.
MIT License
12 stars 14 forks source link

Error while trying to deploy the app #37

Closed andreiv3103 closed 1 year ago

andreiv3103 commented 1 year ago

Hello

I am trying to test this solution in a lab environment. I was following this tutorial: https://www.youtube.com/watch?v=vDWfHN_kygg

When I get to the step where the local testing should be done, it compiles, the site opens to "not found", I add the /DkeTestKey and I get this error:

image

andreiv3103 commented 1 year ago

I double-triple checked the public and private key, to make sure I didn't lose any of the characters when converting them to single line string. The keys are OK.

andreiv3103 commented 1 year ago

I found the solution to the issue, so I post it here if anyone else comes here looking for it. In the Youtube tutorial, it isn't mentioned one important step, present in the web documentation: Namely this:

If you installed OpenSSL version 3 or later, run the following command: openssl rsa -in key.pem -out privkeynopass.pem -outform PEM -traditional

The command from the Youtube tutorial is for OpenSSL <3.

Using the above export command solved my issue.