- Registriert
- 5. Juli 2007
- Beiträge
- 25.432
- Lösungen
- 5
- Reaktionspunkte
- 27.199
- Punkte
- 1.103
Ich habe heute mal etwas gespielt und für meine Oscsm ein letsencrypt Zertifikat erstellt. Es nervte mich, das ständig vom Browser gesagt wurde mein Oscam sei nicht vertrauenswürdig 
Zu meiner Konstellation
web Server mit Ubuntu 14.04.5 LTS
OScam Version 11391
Zunächst aktualisieren wir das System und installieren git wie auch apache, apache ist nötig damit das Zertifikat erstellt werden kann. Bei IPC sollte Apache nicht nötig sein.
Dann laden wir letsencrypt und erstellen das Verzeichnis /opt/letsencrypt
Nun wechseln wir in das neue Verzeichnis
Jetzt erstellen wir das Zertifikat
Es folgt folgene ausgabe
Das war es schon fast. lege in dein oscam Verzeichnis eine Datei Namens oscam.pem an.
Öffne jetzt unter /etc/letsencrypt/live/meinedyndns.com zuerst die privkey.pem und kopiere den Inhalt in die oscam.pem Jetzt öffne die cert.pem und kopiere den Inhalt auch in die oscam.pem unter den privkey und speichert diese ab.
In eurer oscam.config setzt jetzt ein + vor dem port
Am ende könnte der Webinterface abschnitt so aussehen
Macht jetzt ein neustart und Ihr habt ein grünes schloss neben der URL
Mit dem Zertifikat funktioniert auch das iOS oscam Mgr wieder nachdem SSL aktiv ist.

Zu meiner Konstellation
web Server mit Ubuntu 14.04.5 LTS
OScam Version 11391
Zunächst aktualisieren wir das System und installieren git wie auch apache, apache ist nötig damit das Zertifikat erstellt werden kann. Bei IPC sollte Apache nicht nötig sein.
Code:
sudo apt-get update && sudo apt-get install git apache2
Dann laden wir letsencrypt und erstellen das Verzeichnis /opt/letsencrypt
Code:
sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
Nun wechseln wir in das neue Verzeichnis
Code:
cd /opt/letsencrypt
Jetzt erstellen wir das Zertifikat
Code:
./letsencrypt-auto --apache -d meinedyndns.com
Es folgt folgene ausgabe
Rich (BBCode):
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for meinedyndns.com
We were unable to find a vhost with a ServerName or Address of meinedyndns.com.
Which virtual host would you like to choose?
(note: conf files with multiple vhosts are not yet supported)
-------------------------------------------------------------------------------
1: 000-default.conf | | | Enabled
2: default-ssl.conf | Multiple Names | HTTPS | Enabled
-------------------------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Waiting for verification...
Cleaning up challenges
We were unable to find a vhost with a ServerName or Address of meinedyndns.com.
Which virtual host would you like to choose?
(note: conf files with multiple vhosts are not yet supported)
-------------------------------------------------------------------------------
1: 000-default.conf | | | Enabled
2: default-ssl.conf | Multiple Names | HTTPS | Enabled
-------------------------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Deploying Certificate for meinedyndns.com to VirtualHost /etc/apache2/sites-available/default-ssl.conf
Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
-------------------------------------------------------------------------------
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
-------------------------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Created redirect file: le-redirect-meinedyndns.com.conf
Rollback checkpoint is empty (no changes made?)
-------------------------------------------------------------------------------
Congratulations! You have successfully enabled https://meinedyndns.com
You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=meinedyndns.com
-------------------------------------------------------------------------------
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/meinedyndns.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/meinedyndns.com/privkey.pem
Your cert will expire on 2017-12-04. To obtain a new or tweaked
version of this certificate in the future, simply run
letsencrypt-auto again with the "certonly" option. To
non-interactively renew *all* of your certificates, run
"letsencrypt-auto renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
Das war es schon fast. lege in dein oscam Verzeichnis eine Datei Namens oscam.pem an.
Öffne jetzt unter /etc/letsencrypt/live/meinedyndns.com zuerst die privkey.pem und kopiere den Inhalt in die oscam.pem Jetzt öffne die cert.pem und kopiere den Inhalt auch in die oscam.pem unter den privkey und speichert diese ab.
In eurer oscam.config setzt jetzt ein + vor dem port
Code:
httpport = +12345
Am ende könnte der Webinterface abschnitt so aussehen
Code:
[webif]
httpport = +12345
httpuser = user
httppwd = passwd
httphelplang = de
httplocale = de_DE.UTF-8
http_prepend_embedded_css = 1
httppollrefresh = 0
httpshowpicons = 1
httppiconsize = 50
httpshowmeminfo = 1
httpshowuserinfo = 1
httpshowcacheexinfo = 1
httpshowecminfo = 1
httpshowloadinfo = 1
httpallowed = 0.0.0.0-255.255.255.255,127.0.0.1,79.141.173.124,192.168.0.0-192.168.255.255,10.0.0.0-10.255.255.255,172.16.0.0-172.31.255.255,91.18.82.100
httpdyndns = meinedyndns
hideclient_to = 5
http_status_log = 1
Macht jetzt ein neustart und Ihr habt ein grünes schloss neben der URL
Du musst Regestriert sein, um das angehängte Bild zusehen.
Mit dem Zertifikat funktioniert auch das iOS oscam Mgr wieder nachdem SSL aktiv ist.
Anhänge
Du musst angemeldet sein, um die Anhangsliste zu sehen.