Re: decrypt.rb

2019-04-11 Thread Dave via dovecot
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

Re: decrypt.rb

2019-04-11 Thread Aki Tuomi via dovecot
values in the two different > >> places??   I do notice that the get_pubid_priv() function is internal to > >> the decrypt.rb script and calls several OpenSSL functions. > >> > >> -Dave > > Hmm... can you show me how you made the keypair for encryption? Maybe ther

Re: decrypt.rb

2019-04-11 Thread David Salisbury via dovecot
On 4/11/2019 1:50 AM, Aki Tuomi wrote: ... So, not being an expert at encryption, what are the ramifications of those digests being read as different values in the two different places??   I do notice that the get_pubid_priv() function is internal to the decrypt.rb script and calls several

Re: decrypt.rb

2019-04-10 Thread Aki Tuomi via dovecot
yet. Will keep > > looking. > > > > Out of curiosity, what version of ruby were you using to run the > > script?  My ruby version is 2.5.1p57. > > > > -Dave > > So, I found that in decrypt.rb there is a point where this section is > reached: >

Re: decrypt.rb

2019-04-10 Thread David Salisbury via dovecot
t may be causing it not to work for me yet. Will keep looking. Out of curiosity, what version of ruby were you using to run the script?  My ruby version is 2.5.1p57. -Dave So, I found that in decrypt.rb there is a point where this section is reached: [code] unless our_key == nil    # de

Re: decrypt.rb

2019-04-10 Thread Dave via dovecot
On 4/10/2019 1:32 AM, Aki Tuomi wrote: On 9.4.2019 18.15, Dave wrote: I've tried specifying an output file as well, per the script's command line options, but the output file is 0 bytes.  Does anyone have any suggestions? I *think* I'm using it the way it's intended to be used, but maybe I

Re: decrypt.rb

2019-04-09 Thread Aki Tuomi via dovecot
On 9.4.2019 18.15, Dave wrote: > >> I've tried specifying an output file as well, per the script's > command line options, > >> but the output file is 0 bytes.  Does anyone have any suggestions?  > I *think* I'm > >> using it the way it's intended to be used, but maybe I'm not?! > >> -Dave > > >

Re: decrypt.rb

2019-04-09 Thread Dave via dovecot
>> I've tried specifying an output file as well, per the script's command line options, >> but the output file is 0 bytes.  Does anyone have any suggestions?  I *think* I'm >> using it the way it's intended to be used, but maybe I'm not?! >> -Dave > > Hi! > Maybe the key you tried was not used t

Re: decrypt.rb

2019-04-08 Thread Aki Tuomi via dovecot
On 9.4.2019 2.33, Dave via dovecot wrote: > Per the Dovecot site here: > https://wiki.dovecot.org/Plugins/MailCrypt > ... the "decrypt.rb" ruby script can be used to decrypt a > Dovecot-encrypted message file from the command line.  The script sort > of runs successf

decrypt.rb

2019-04-08 Thread Dave via dovecot
Per the Dovecot site here: https://wiki.dovecot.org/Plugins/MailCrypt ... the "decrypt.rb" ruby script can be used to decrypt a Dovecot-encrypted message file from the command line.  The script sort of runs successfully for me, in the sense that it doesn't error out, but it d