Skip to main content

Posts

Showing posts from June, 2016

tomcat ssl existant

Tomcat: activer HTTPS avec des certificats SSL existants Dans le cas ou un certificat SSL existe déjà, voici comment faire en sorte que Tomcat serve en HTTPS avec les certificats existants . Pour que cela fonctionne, il faut avoir en sa possession: La clé privée qui a servie à générer le CSR, généralement un "*.key" Le certificat délivré par le registrar (ce qui a été délivré en réponse à la CSR), généralement un "*.cert" Le certificat de l'autorité, généralement un "*.pem". Par exemple pour Gandi, c'est https://www.gandi.net/static/CAs/GandiStandardSSLCA.pem, docmenté dans https://wiki.gandi.net/en/ssl/intermediate Noter que la documentation officielle de Tomcat couvre un certain cas d'utilisation mais pas celui-ci. En effet, https://tomcat.apache.org/tomcat-8.0-doc/ssl-howto.html traite des cas ou on souhaite autosigner le certificat, ou alors il traite du cas ou l'on doit encore générer le CSR à partir d'une clé privée, tout

vmware hostif userif get_user_pages

Kernel 4.6 VMware Workstation 12 get_user_pages error My Archlinux system just upgraded to kernel 4.6 and when compiling VMware Workstation 12 modules, I get: /usr/lib/vmware/modules/source/vmmon-only/linux/hostif.c error: too many arguments to function ‘get_user_pages’ Fortunately, this is a known problem, solved in the VMware Workstation Community forum . The solution is to replace all "get_user_pages" calls with "get_user_pages_remote". I got to replace: 1 occurence in "vmmon-only/linux/hostif.c" 1 occurence in "vmnet-only/userif.c" This made it for me. Thanks go to "the community". References:  https://bugzilla.redhat.com/show_bug.cgi?id=1278896

dockerfile multiline to file

Outputing a multiline string from Dockerfile I motsly use a Dockerfile by sourcing from a base ditribution: CentOS or Debian. But I also have a local mirror and would like to use it for packages installation. Espacially on CentOS it is about many lines to write to the /etc/yum.repos.d/CentOS-Base.repo file. Easiest way: one RUN per line The first method that comes in mind is to issue one RUN per line to write. Here you are: RUN echo "[base] " > /etc/yum.repos.d/CentOS-Base.repo RUN echo "name=CentOS-$releasever - Base " >> /etc/yum.repos.d/CentOS-Base.repo RUN echo "baseurl=ftp://packages-infra.mg.rktmb.org/pub/centos/7/base-reposync-7 " >> /etc/yum.repos.d/CentOS-Base.repo RUN echo "gpgcheck=0 &quo