You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Insomnia Team,
On my API on Insomnia I have a series of JWE encrypted endpoints (full body and partial body encryption). I was able to successfully decrypt the responses of these endpoints using my Mac machine with configurations like the following (one example of an endpoint) in environment settings and certificates:
{
"scheme": "https",
"base_path": "",
"host": "{host name}",
"mastercard": {
"consumerKey": "{value here}",
"keyAlias": "{value here}",
"keystoreP12Path": "path to file",
"keystorePassword": "{value here}",
"appliesTo": [
"randomwebsite.com"
],
"encryptionConfig": {
"paths": [
{
"path": "/endpoint",
"toEncrypt": [
{
"element": "$",
"obj": "$"
}
],
"toDecrypt": [
{
"element": "$",
"obj": "$"
}
]
},
],
"mode": "JWE",
"encryptionCertificate": "path to file",
"keyStore": "path to file",
"keyStoreAlias": "{value here}",
"keyStorePassword": "{value here}",
"encryptedValueFieldName": "{value here}"
}
}
}
However, when I use Insomnia on my Windows machine (Exact same version, node etc.), I wasn't able to decrypt the response. On Windows for me it returns a success response but does not decrypt the response, it leaves it encrypted.
Do you have any idea what could be potentially causing this issue? Is decryption supported on Windows machines?
Thank you.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi Insomnia Team,
On my API on Insomnia I have a series of JWE encrypted endpoints (full body and partial body encryption). I was able to successfully decrypt the responses of these endpoints using my Mac machine with configurations like the following (one example of an endpoint) in environment settings and certificates:
{
"scheme": "https",
"base_path": "",
"host": "{host name}",
"mastercard": {
"consumerKey": "{value here}",
"keyAlias": "{value here}",
"keystoreP12Path": "path to file",
"keystorePassword": "{value here}",
"appliesTo": [
"randomwebsite.com"
],
"encryptionConfig": {
"paths": [
{
"path": "/endpoint",
"toEncrypt": [
{
"element": "$",
"obj": "$"
}
],
"toDecrypt": [
{
"element": "$",
"obj": "$"
}
]
},
],
"mode": "JWE",
"encryptionCertificate": "path to file",
"keyStore": "path to file",
"keyStoreAlias": "{value here}",
"keyStorePassword": "{value here}",
"encryptedValueFieldName": "{value here}"
}
}
}
However, when I use Insomnia on my Windows machine (Exact same version, node etc.), I wasn't able to decrypt the response. On Windows for me it returns a success response but does not decrypt the response, it leaves it encrypted.
Do you have any idea what could be potentially causing this issue? Is decryption supported on Windows machines?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions