baumi's blog

baumi's personal blog … Linux, OS X, Windows, Random things, …

March, 2015

InterSSL RapidSSL unter nginx einrichten

in nginx/conf/gitlab-http.conf listen *:443 ssl; server_name git.b-nm.at; ssl_certificate /var/opt/gitlab/nginx/ssl/git.b-nm.at.crt.ca.pem; ssl_certificate_key /var/opt/gitlab/nginx/ssl/git.b-nm.at.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; wobei git.b-nm.at.crt.ca.pem eine zuammenkopierte datei ist aus: a) dem git.b-nm.at.crt (wie von InterSSL geliefert) b) dem https://www.interssl.at/ca_interssl_rapidssl_osx.pem

IMAP mit self-signed SSL Zertifikat per PHP abrufen

< ? php /* connect to IMAP */ $hostname = '{my.b-nm.at:993/imap/novalidate-cert/ssl}INBOX'; $username = 'mailuser'; $password = 'kennwort'; /* try to connect */ $inbox = imap_open($hostname,$username,$password) or die('Cannot connect to B-NM: ' . imap_last_error()); /* grab emails */ $emails = imap_search($inbox,'ALL'); /* if emails are returned, cycle through each... */ if($emails) { /* begin output var […]