Skip to main content
Solved

Error: The encryption key could not be found in the key store


vivian
Apprentice
Forum|alt.badge.img

Good Afternoon.


I have tried to decrypt a document binary data throw Decrypt connetor TW and a got this error:

status code = -4 - The encryption key could not be found in the key store.

The value passed to the Decrypt connector is a binary data value readed by “Read File” connector.

In the Read File connector I got no error.

My flow is in the picture bellow:

Thanks,

Vivian.

Best answer by Vincent Doppenberg

Hello @vivian,

The Encoding input parameters of the Write and Read file connector should be left empty and the Write preamble input parameter of the Write file connector should also be left empty or set to No.

I hope this helps.

View original
Did this topic help you find an answer to your question?
This topic has been closed for replies.

12 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23

Hey Vivian,

That is quite strange, I would have expected the Encrypt and the Decrypt to either both work or both not work; not just one.

Is there any additional error log information present in the Indicium log regarding this issue? We might be able to read through the message and stack trace to pinpoint the exact issue. Could you share the error with trace information here? Thanks!


vivian
Apprentice
Forum|alt.badge.img
  • Author
  • Apprentice
  • 8 replies
  • August 26, 2024

Hi Mark,

I got the error attached (errorDecrypt) and I wrote in a table the steps as bellow:

 

 

Thank’s a lot,

Vivian


Mark Jongeling
Administrator
Forum|alt.badge.img+23

Thanks! Could it be that you have two or more Indiciums running on the same IAM?

It may be that the Decryption keys are stored locally so that every Indicium has it's own decryption keys.

This brings a problem that one Indicium encrypts a value but another tries to decrypt it but is not able to as the keys are not shared between these Indiciums.


vivian
Apprentice
Forum|alt.badge.img
  • Author
  • Apprentice
  • 8 replies
  • August 26, 2024

Hi Mark.

Thank you.

I’ll check with Freddy because I really don’t know about this configuration.

Do you know if there are some documentation about it? Just for my knowledge.

 

Have a nice week,

Vivian

 


Mark Jongeling
Administrator
Forum|alt.badge.img+23

Hi Vivian,

Right here Encryption | Thinkwise Documentation (thinkwisesoftware.com) 😄

You too, have a great week!


vivian
Apprentice
Forum|alt.badge.img
  • Author
  • Apprentice
  • 8 replies
  • August 26, 2024

Thank’s :)


Freddy
Forum|alt.badge.img+16
  • Thinkwise Local Partner Brasil
  • 533 replies
  • August 26, 2024
Mark Jongeling wrote:

Thanks! Could it be that you have two or more Indiciums running on the same IAM?

It may be that the Decryption keys are stored locally so that every Indicium has it's own decryption keys.

This brings a problem that one Indicium encrypts a value but another tries to decrypt it but is not able to as the keys are not shared between these Indiciums.

Hi @Mark Jongeling , just one indicium. I spoke about this scenario with @Vincent Doppenberg , appears to be a bug or something undocumented that is missing.

cc @vivian 


Forum|alt.badge.img+4

Hello @vivian,

Can you share the data type of the encrypted_data process variable? I suspect that this might be a (n)varchar data type or perhaps a varbinary data type that’s too short. The data type should be varbinary(max).

If data type is correct, can you share the input and output mapping of the encrypt connector, write file connector and read file connector?


vivian
Apprentice
Forum|alt.badge.img
  • Author
  • Apprentice
  • 8 replies
  • August 26, 2024

Hello Vincent.

Thank you for the answer.

I’ve created the encrypted_data as varbinary(max)

 

Encrypt input:

 

The file_finary is varbinary(max)

 

Encrypt output:

Write input/output:

 

 

Read input/output:

 

Thank’s.

Vivian


vivian
Apprentice
Forum|alt.badge.img
  • Author
  • Apprentice
  • 8 replies
  • August 26, 2024

Sorry.

 

I forgot the Decrypt as well.

 

 

 

 

Thanks :)


Forum|alt.badge.img+4

Hello @vivian,

The Encoding input parameters of the Write and Read file connector should be left empty and the Write preamble input parameter of the Write file connector should also be left empty or set to No.

I hope this helps.


vivian
Apprentice
Forum|alt.badge.img
  • Author
  • Apprentice
  • 8 replies
  • August 27, 2024

Hi Vincent.

 

Thank’s and have a I nice week.

:)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings