docker ca certificate for private registry on osx

Docker has changed to ssl as from v1.3.1. But until now I could not use it with local / on-premise docker registries and had to fall-back to –insecure options.
Today I read a docker issue at 805 and the last comment of ‘rossbachp’ gave the solution.

Get your hand on the public CA key part of your self signed server key. That is the one you have used to sign your self signed certificate for your server.
Create inside your boot2docker ‘boot2docker ssh’ a directory named after the private registry you want to access:
boot2docker ssh
sudo su -
cd /var/lib/boot2docker
cp /from/some/location/ca.pem .

Create a script in /var/lib/boot2docker/

cat /var/lib/boot2docker/ >> /etc/ssl/cacert.pem

Now you can push your docker images to your on-premise docker registry.

camel cxf https server endpoint

I wanted to configure in camel a cxf https endpoint. Normally I do it the forceful way to update the jdk certificates but it can be done in another way.
Define the jax-ws contract first endpoint, although that can be done also in a code first manner.

This is the defined endpoint, it is directly taken from a camel sample named ‘camel-cxf-contract-first-blueprint’.

<blueprint xmlns=""
	xmlns:xsi="" xmlns:cxf=""
	xmlns:camel="" xmlns:sec=""
	<cxf:cxfEndpoint id="reportEndpoint"
			<entry key="loggingFeatureEnabled" value="true"/>
	<httpj:engine-factory bus="cxf">
		<httpj:engine port="9080">
				<sec:keyManagers keyPassword="changeit">
					<sec:keyStore type="JKS" password="changeit" resource="certs/keystore.jks" />
	<camelContext xmlns="">
        <from uri="cxf:bean:reportEndpoint"/>
        <convertBodyTo type="org.apache.camel.example.reportincident.InputReportIncident"/>
        <log message="Received report incident ${body.incidentId}"/>
        <setHeader headerName="Exchange.FILE_NAME">
        <to uri="file:work/incident"/>
        <log message="Stored a copy of the incident as ${header.CamelFileNameProduced}"/>
                <to uri="seda:emailMe"/>
                <to uri="seda:callMe"/>
        <to uri="language:constant:classpath:ok.xml"/>
        <convertBodyTo type="org.apache.camel.example.reportincident.OutputReportIncident"/>
        <from uri="seda:callMe"/>
        <log message="We are going to call ${}"/>
        <from uri="seda:emailMe"/>
        <log message="We are going to email ${}"/>

Update the xml code snippet to make it readable again. (2015/01/25)