Firstsawyou commented on issue #3334:
URL: https://github.com/apache/apisix/issues/3334#issuecomment-762727185


   Hi,  @tghfly 
   For shell signature, you can try it like this:
   
   ```shell
   #!/bin/bash
   SECRET="test-secret-key"
   MESSAGE="GET\n/index.html\n\ntest-key\nMon, 18 Jan 2021 09:35:39 
GMT\nx-custom-a:test"
   
   # to lowercase hexits
   echo -n $MESSAGE | openssl dgst -sha256 -hmac $SECRET
   
   # to base64
   echo -e $MESSAGE | openssl dgst -sha256 -hmac $SECRET -binary | base64
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to