Still exit code 100 on restore from encrypted Storage

I read this post: Can't restore, sequence truncated Exit code: 100 about the -traditional needed to get a decent header in the private key. As my openssl also generated the ‘wrong’ header I used the -traditional flag and indeed got a proper header. However, when I want to restore I still get ‘sequence truncated Exit code: 100’.

I am running on MacOS 15.5, openssl 3.1.3 19 Sep 2023, Duplicacy Web edition 1.8.3 which comes with CLI 3.2.3,

This is how my private key starts:

-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-256-CBC,E4850C87BAFC5E809D98D8F07B9EB8C7

7VfofLzDoMR8Cz9S1uxVg+zIJKMVI/Q15t3TkTUl9dwPe84ibOCWZsUCkFfDG07B

This is what I get back (in the GUI) when I attempt a restore:

2025-07-22 21:07:29.114 INFO REPOSITORY_SET Repository set to /Users/tommy/Desktop
2025-07-22 21:07:29.114 INFO STORAGE_SET Storage set to /Volumes/SSD4SubEncrypted
2025-07-22 21:07:29.114 INFO SNAPSHOT_FILTER Loaded 1 include/exclude pattern(s)
2025-07-22 21:07:29.151 ERROR RSA_PRIVATE Failed to parse the private key in /Users/tommy/duplicacy/private.pem: asn1: syntax error: sequence truncated

Any idea how to tackle this?

Thanks,
Tom

Strange. Can openssl itself decrypt the key?

openssl rsa -in /Users/tommy/duplicacy/private.pem -out /Users/tommy/duplicacy/private_decrypted.pem

If so, are you passing the correct password? Does your password contain weird characters that duplicacy’s web UI may mangle? Can you try with duplicacy in the CLI?

Yeah, that works. I get something like this back:

cat private_decrypted.pem 
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCo07Ntwzja8GzK

I made my password memorable, so a couple of random words, separated by hyphens.

I will dig in to how to restore with the CLI, not really comfortable with that yet.