siu-toba / docker-certs Goto Github PK
View Code? Open in Web Editor NEWContenedor Docker para crear CA y Certificados SSL a demanda
Contenedor Docker para crear CA y Certificados SSL a demanda
Vieja, falta un -y en la linea 4 del Dockerfile
"RUN apt-get update && apt-get install openssl -y "
Sin el assume yes no buildea.
Hoy lee directamente el docker-template.env y debería comportarse igual que en el resto de los docker que exigen un docker.env (viene de copiar el docker-template.env y editarlo). Debería estar en el .gitignore también.
Actualmente, docker.env (copiado de docker-template.env) arroja la siguiente configuración:
sergio@devops:~/workspace/docker-certs$ docker-compose config
networks: {}
services:
certs:
container_name: certs
environment:
CA_DATA: '"/C=AR/O=ROOTCA/OU=SIUTEST/ST=Posadas/CN=ROOTCA/"'
CA_INT_PWD: '''cambiametambien'''
CA_PWD: '''cambiame'''
DOCKER_NAME: certs
LISTA_CLIENTES: cliente1 cliente2 cliente3
LISTA_SERVER: dominio dominio2 dominio3
image: siutoba/docker-certs
network_mode: bridge
volumes:
- ~/workspace/docker-certs/docker-data/certs/certificados:/CAs/intermediate:rw
- ~/workspace/docker-certs/docker-data/certs/root:/CAs/rootCA:rw
version: '2.0'
volumes: {}
Notar que las variables definidas en docker.env
no pueden tener comillas ya que se trasladan escapadas... bash entiendo permite definir variables tipo string sin necesidad de comillas.
Por otro lado, si queremos defininir CRT_DATA, no me queda claro como crearla... ya que acá y acá se está armando una por cada certificado cliente/servidor, con el CN respectivo. Podríamos hacer que solo la parte C
, OU
, ST
sean personalizables y CN
lo arme al momento de usar el CRT_DATA.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.