Skip to content

keytool error: Certificate not imported, alias <RootCA> already exists #1

Description

@erosenberg

I'm trying to run this with a docker-compose file and keep getting this error:

From the logs:

The PKCS#12 bundle is at "/certs/server.p12" ✅
The legacy PKCS#12 encryption password is the often hardcoded default "changeit" ℹ️
Creating truststore...
keytool error: java.lang.Exception: Certificate not imported, alias <RootCA> already exists

Then the container just restarts infinitely.

version: "3.7"

services:
  mkcert:
    container_name: mkcert
    image: nmasse/mkcert
    restart: unless-stopped
    hostname: mkcert
    environment:
       SERVER_HOSTNAMES: "my-comp.lan localhost"
    volumes:
      - ./mkcert:/certs

Any ideas on what to try next?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions