FREENAS – Owncloude

instalace certifikátu a ssl komunikace

Jak povolit nainstalování balíčů
Really simple fix for FreeNAS 11. Disable the local cache and enable FreeBSD.

set this to enabled: no /usr/local/etc/pkg/repos/local.conf
set this to enabled: yes/usr/local/etc/pkg/repos/FreeBSD.conf

install letsencrypt 

All I did was:

  • pkg install git *git clone https://github.com/letsencrypt/letsencrypt
  • cd letsencrypt *./letsencrypt-auto –help –debug all (this fixed my dependancies) *service apache24 stop
  • ./letsencrypt-auto certonly –standalone –email your@email.com -d server.domain.com
  • vi \usr\pbi\owncloud-amd64\etc\apache24\extra\httpd-ssl.conf
  • Edited the SSLCertificateFile, SSLCertificateKeyFile SSLCertificateChainFile lines to point to „/etc/letsencrypt/live/<domain>/fullchain.pem“, „/etc/letsencrypt/live/<domain>/privkey.pem“ and „/etc/letsencrypt/live/<domain>/fullchain.pem“ respectively
  • vi \usr\pbi\owncloud-amd64\etc\apache24\httpd.conf
  • add the following virtual host for http to https redirect: <VirtualHost *:80> ServerName server.domain.com Redirect „/“ „https://server.domain.com

</VirtualHost> * service apache24 start

Napsat komentář

Vaše emailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *