WordPress Warning: Undefined array key “a:1:{s:3:”ssl”;b:1;}”

Warning: Undefined array key “a:1:{s:3:”ssl”;b:1;}” in /wp-includes/class-requests.php on line 214 Um den Fehler in WordPress für die Nutzer auszublenden fürgen Sie “error_reporting (0);” in die wp-config.php für den Adminbereich unter \wp-includes\class-requests.php Achtung WordPress + Plugins können bei diesem Anbieter nicht automatisiert aktualisiert werden! Die regelmäßige Aktualisierung wird aus Sicherheitsgründen empfohlen!

Generate SHA256 for Integrity Origin

To Keep the Integrity of External Files: script src=”https://code.jquery.com/jquery-1.12.3.min.js” integrity=”sha256-aaODHAgvwQW1bFOGXMeX+pC4PZIPsvn2h1sArYOhgXQ=” crossorigin=”anonymous” to generate the integrity part you can use the following linux bash script followed by the src file: #!/bin/bash url=$1 && file=”${url##*/}” && wget $url && extension=”${url##*.}” && echo -e “\n\n” if [ $extension = ‘js’ ] then echo -e “Generate JS HTML output\n” Weiterlesen…

Simple VPN with OpenVPN Server Script

Create OpenVPN Server and Client wget https://git.io/vpn -O openvpn-ubuntu-install.sh chmod +x openvpn-ubuntu-install.sh sudo ./openvpn-ubuntu-install.sh Copy the from the Script generated *.ovpn file to your Client Desktop Get The Client from: https://openvpn.net/download-open-vpn/ Import the *.ovpn file inside the Windows Client or use the terminal openvpn with the *.ovpn file as parameter. Internet by OpenVPN: Routing Configuration Weiterlesen…

hostname persistent – permanently without restart

Change hostname on Ubuntu without restart To change the hostname permanently without a restart enter the following command: hostnamectl set-hostname myhostname To verify: hostnamectl /etc/hostname contains name of the machine, as known to applications that run locally. /etc/hosts and DNS associate names with IP addresses. hostname may be mapped to whichever IP address the machine can access itself, but Weiterlesen…

Node JS Socket.IO

//—————- HTTPS Server —————————————- var fs = require(‘fs’); var https = require(‘https’); var express = require(‘express’); var app = express(); var options = { key: fs.readFileSync(‘/etc/letsencrypt/live/hg-system.com/privkey.pem’), cert: fs.readFileSync(‘/etc/letsencrypt/live/hg-system.com/fullchain.pem’) }; var server = https.createServer(options, app); var port = 3000; server.listen(port, function() { log(‘listening on *:’ + port); }); app.use(express.static(‘public’)); app.get(‘/’, (req, res) => { res.sendFile(‘index.html’); }); Weiterlesen…

NodeJS DB Connection

//—————- SQL Server —————————————- var mysql = require(‘mysql’); var db = mysql.createConnection({ host : ‘localhost’, user : ‘dbuser’, password : ‘dbpass’, database: ‘dbname’ }); db.connect(); db.query(‘SELECT 1 + 1 AS solution‘, function(err, rows, fields) { if (err) throw err; console.log(‘The solution is: ‘, rows[0].solution); }); process.on(‘exit’, function (){ db.end(); console.log(‘Goodbye!’); });

NodeJS HTTP/HTTPS – Server (with Let’s Encrypt SSL Cert)

Basic HTTP-Server var fs = require(‘fs’); var http = require(‘http’); var express = require(‘express’); var app = express(); var server = http.createServer(app); var port = 3000; server.listen(port, function() { log(‘listening on *:’ + port); }); app.use(express.static(‘public’)); app.get(‘/’, (req, res) => { res.sendFile(‘index.html’); }); Extend your Server to HTTPS with Free SSL Cert var fs = Weiterlesen…

SSL Wildcard *.example.com

SSL Wildcard CERT: sudo apt install certbot   certbot certonly –manual –preferred-challenges dns –server https://acme-v02.api.letsencrypt.org/directory –manual-public-ip-logging-ok -d ‘*.hg-system.com’   Go to your DNS Provider for e.g. Cloudflare insert the txt record “_acme-challenge” insert the code from the command ahead, wait for at least 2 min or till the DNS-Record is available and press enter (in Weiterlesen…

Lets Encrypt ACME Challenge for Wildcard Certificate

You need access to the DNS and be able to create txt records. certbot certonly –manual –preferred-challenges dns –server https://acme-v02.api.letsencrypt.org/directory –manual-public-ip-logging-ok -d ‘*.hg-system.com’ -d hg-system.com Change hg-system.com to your Domain Name… Create the txt Record in your DNS. Type TXT Name _acme-challenge Value the command shows above Note that you need to change the acme Weiterlesen…