Cryptex icon indicating copy to clipboard operation
Cryptex copied to clipboard

InvalidCiphertextException: null

Open mbopp opened this issue 7 years ago • 0 comments

I'm running into the following issue that I'm having difficulty resolving. I am using v1.0.0.

→ cryptex encrypt test
Uh-oh, we have a problem:
InvalidCiphertextException: null
    at Request.extractError (/usr/local/lib/node_modules/cryptex/node_modules/aws-sdk/lib/protocol/json.js:43:27)
    at Request.callListeners (/usr/local/lib/node_modules/cryptex/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
    at Request.emit (/usr/local/lib/node_modules/cryptex/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
    at Request.emit (/usr/local/lib/node_modules/cryptex/node_modules/aws-sdk/lib/request.js:615:14)
    at Request.transition (/usr/local/lib/node_modules/cryptex/node_modules/aws-sdk/lib/request.js:22:10)
    at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/cryptex/node_modules/aws-sdk/lib/state_machine.js:14:12)
    at /usr/local/lib/node_modules/cryptex/node_modules/aws-sdk/lib/state_machine.js:26:10
    at Request.<anonymous> (/usr/local/lib/node_modules/cryptex/node_modules/aws-sdk/lib/request.js:38:9)
    at Request.<anonymous> (/usr/local/lib/node_modules/cryptex/node_modules/aws-sdk/lib/request.js:617:12)
    at Request.callListeners (/usr/local/lib/node_modules/cryptex/node_modules/aws-sdk/lib/sequential_executor.js:115:18)

My cryptex.json file contains the following. The dataKey was generated with aws kms as I always have, but something has changed that causes this exception. I've updated XCode recently, not sure what other changes could be to blame. Any help would be so appreciated.

{
  "default": {
    "keySource": "kms",
    "keySourceOpts": {
      "region": "us-east-1",
      "dataKey": "AQEDAHgWg1v50SLoJhYDug/M+82slWmeCS5wuS6iA77bJZUH/wAAAH4wfAYJKoZIhvcNAQcGoG8wbQIBADBoBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDJz5PixvmUk0gZygIBEIA7uelLplHIqeMTMd2NolmtOuXb4L28YM7sKhC0+GE7GQBReHOtVB2dDvSd2QkXeCq1hM91hVTZeJeJ1iU="
    },
    "secrets": {
    }
  }
}

mbopp avatar May 05 '17 13:05 mbopp