decrypt.rb

Dave dave at momentumweb.com
Fri Apr 12 00:56:57 EEST 2019


>> Aki, I just used the "EC key" instructions from the Dovecot MailCrypt wiki:
>> https://wiki.dovecot.org/Plugins/MailCrypt
>>
>> "
>> In order to generate an EC key, you must first choose a curve from the
>> output of this command:
>>   > openssl ecparam -list_curves
>>
>> If you choose the curve prime256v1, generate and EC key with the command:
>>   > openssl ecparam -name prime256v1 -genkey | openssl pkey -out
>> ecprivkey.pem
>>
>> Then generate a public key out of your private EC key
>>   > openssl pkey -in ecprivkey.pem -pubout -out ecpubkey.pem
>> "
>>
>> -Dave
> I'm going on a limb and guess that there is something strange happening with ruby and openssl versions here.
>
> The main point of the script is to show how the data can be decrypted, and can be used for small-scale data recovery as well.
>
> Aki
>
Copy that.  I would agree that it seems to be something weird between 
OpenSSL and Ruby in this case.  Since I'm able to get it to work in my 
specific instance, and since it doesn't seem systemic outside of my 
situation, I'd say -- specific problem solved! :) Thanks for your help.
-Dave



More information about the dovecot mailing list