Certificate issue while declaring a global variable

I’m nearly finished with setting it up. Now I’m setting the global variable as instructed:

RAILS_ENV=production bundle exec rake db:create db:migrate

And the program is complaining that Diaspora doesn’t know where my certificate authorities are. And it is asking me to double-check path in diaspora.yml. Which I did.

default certs that came with Ubuntu server are in /etc/ssl/certs/ca-certificates.crt
and I’m also using third party certs from Let’s Encrypt which is located in /etc/letsencrypt/live/<my-domain>/*.pem

But no matter which one I set I keep getting the same error. How can I resolve this ? I’m nearly done setting this up.

Thank you in advance.

Hi mods, this topic can be deleted as I solved the problem on my own.