Add charles ssl proxy certificates to JDK on a mac

First you need to run charles and enable SSL proxying. The see which JDK is used by your application and add the certificate to the cacerts file: curl -s http://ssl.charles/ –proxy 127.0.0.1:8888 > cert_file sudo keytool -import -noprompt -alias charles-$(date +%Y%m%d%H%M%S) \ -file cert_file \ -keystore /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/lib/security/cacerts \ -storepass changeit rm cert_file  

Add charles ssl proxy certificates to JDK on a mac Read More »

run kong with compose

Here a simple docker-compose.yml file to get kong community up and running. It is configured to use postgresql that persists data to a local docker volume. All ports are mapped to localhost only and log goes to stdout/stderr. version: ‘3.4’ services: kong-db: image: ‘postgres:10.1’ ports: – 127.0.0.1:5432:5432 environment: POSTGRES_USER: kong POSTGRES_PASSWORD: kong POSTGRES_DB: kong PGDATA:

run kong with compose Read More »

Robo 3T MongoDB client fails to start on ubuntu 16.04

I tried to rim robo3t-1.1.1-linux-x86_64 downloaded from https://robomongo.org/ and got the following error when trying to run it: This application failed to start because it could not find or load the Qt platform plugin “xcb” in “”. Available platform plugins are: xcb. Reinstalling the application may fix this problem. Aborted Trying to install xcb via

Robo 3T MongoDB client fails to start on ubuntu 16.04 Read More »

failed to run Kubelet: failed to create kubelet: misconfiguration: kubelet cgroup driver: “systemd” is different from docker cgroup driver: “cgroupfs”

Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial Docker version 17.06.0-ce, build 02c1d87 openshift-origin-server-v3.6.0-c4dd4cf-linux-64bit I followed the steps under https://docs.openshift.org/latest/getting_started/administrators.html#downloading-the-binary and got the error in the title. To fix this you have to add “–exec-opt native.cgroupdriver=systemd” to ExecStart of docker. The best way to do this is to add a addin file

failed to run Kubelet: failed to create kubelet: misconfiguration: kubelet cgroup driver: “systemd” is different from docker cgroup driver: “cgroupfs” Read More »

SSL certificates for apache

Simple way to create self-signed SSL certificates. #!/bin/bash # usage: ./create-ca.sh if [ -e ca.key ]; then echo “ca.key already exists” exit 1 fi openssl genrsa -out ca.key 4096 openssl req -new -x509 -days 3650 -key ca.key -out ca.crt \ -subj “/C=AT/ST=Vienna/L=Vienna/O=coffeebeans.at/OU=IT/CN=coffeebeans.at/emailAddress=office@coffeebeans.at” #!/bin/bash # usage: ./create-key.sh CN NAME=$1 SERIAL=`ls -l *.key | wc -l` if

SSL certificates for apache Read More »

Ubuntu: Docker behind proxy

sudo mkdir /etc/systemd/system/docker.service.d cat /etc/systemd/system/docker.service.d/http-proxy.conf [Service] Environment=”HTTP_PROXY=http://proxy-address:8080/” Environment=”HTTPS_PROXY=http://proxy-address:8080/” Environment=”NO_PROXY=localhost,127.0.0.1,.localdomain” sudo systemctl daemon-reload sudo systemctl restart docker  

Ubuntu: Docker behind proxy Read More »