Docker Community Forums

Share and learn in the Docker community.

Docker + SSL + apache2 + x509

(Douglasmendes) #1

Hello buddies!
I have a biggest problem for me: SSL
I’m trying install a certificate in my system, and my system have 3 containers that are manage with vagrant.

  • database (docker)
  • main System (docker)
  • proxy(docker) - that’s a proxy reverse

When I try install in my container proxy, and install all certificates on folders.
I change in the

<Virtual host>

## SSL directives
  SSLEngine on
  SSLCertificateFile       "/etc/apache2/ssl/"
  SSLCertificateKeyFile "/etc/apache2/ssl/mykey.key"
  SSLCACertificateFile  "/etc/apache2ssl/sslroot.crt"
  SSLCertificateChainFile "/etc/apach2/ssl/Intermediate.crt"


And obviously my certificates in path folders /etc/apache2/ssl/

When I try restart my Apache, my container “proxy” don’t running again and their status is as stoped. Thein I call docker log proxy:

[error] Init: Unable to read server certificate from file /etc/apache2/ssl/
[Thu Aug 06 11:01:02 2015] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Thu Aug 06 11:01:02 2015] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error

Someone know how I can solve this problem?

I need much install this SSL in server.