Sign inSign up

ogulcanaydogan/ssl-gen

By ogulcanaydogan

•Updated 9 months ago

Self-signed SSL certificate generator for development

Image
0

880

ogulcanaydogan/ssl-gen repository overview

⁠SSL Gen

Generate self-signed SSL certificates for development.

⁠Quick Start

docker run -v $(pwd)/certs:/certs ogulcanaydogan/ssl-gen

Creates server.crt and server.key in the mounted directory.

⁠Custom Domain

docker run -v $(pwd)/certs:/certs -e DOMAIN=myapp.local ogulcanaydogan/ssl-gen

⁠Environment Variables

VariableDescriptionDefault
DOMAINCertificate domainlocalhost
DAYSValidity in days365
KEY_SIZERSA key size2048
COUNTRYCountry codeUS
ORGOrganization nameDev

⁠Use with Nginx

services:
  ssl:
    image: ogulcanaydogan/ssl-gen
    volumes:
      - certs:/certs
    environment:
      - DOMAIN=myapp.local

  nginx:
    image: nginx
    volumes:
      - certs:/etc/nginx/certs:ro
    depends_on:
      - ssl

⁠License

MIT

Tag summary

Content type

Image

Digest

sha256:190fd94b6…

Size

4.3 MB

Last updated

9 months ago

docker pull ogulcanaydogan/ssl-gen