generate certs if SECURE=ssl

while waiting for https://github.com/docker/docker-registry/pull/693 to be merged.