Reply by email SSL self signed certificate error

Ok so now I’m on the new server I am going to try to get this set up again :smile:

The snippet above doesn’t work Kane, the app fails to bootstrap with /pups/lib/pups/config.rb:93:in block (2 levels) in run_commands’: Invalid run command path (SyntaxError)`

So I’ve tried with:

run:
 - file:
     path: /tmp/add-cert
     chmod: +x
     contents: |
       #!/bin/bash -e
       #Download cert
       wget http://mysite.com/cert/cert.txt -O - > /usr/local/share/ca-certificates/aston-email.cert
       update-ca-certificates

 - exec: "/tmp/add-cert"

But on checking logs I see:

Job exception: SSL_connect returned=1 errno=0 state=unknown state: unknown protocol

/usr/local/lib/ruby/2.0.0/net/pop.rb:552:in `connect'
/usr/local/lib/ruby/2.0.0/net/pop.rb:552:in `do_start'
/usr/local/lib/ruby/2.0.0/net/pop.rb:530:in `start'
/var/www/discourse/app/jobs/scheduled/poll_mailbox.rb:91:in `poll_pop3'
/var/www/discourse/app/jobs/scheduled/poll_mailbox.rb:18:in `execute'
/var/www/discourse/app/jobs/base.rb:153:in `block (2 levels) in perform'

There was also this from last night, but I only activated reply by email earlier today:

`Job exception: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed``

Any ideas on what I could try next or what might be going wrong?