install ssl hostkey into /etc/ssl/private instead of /etc/ssl/debian/keys
authorPeter Palfrader <peter@palfrader.org>
Mon, 7 Mar 2016 20:53:49 +0000 (21:53 +0100)
committerPeter Palfrader <peter@palfrader.org>
Mon, 7 Mar 2016 20:53:49 +0000 (21:53 +0100)
modules/apache2/templates/default-debian.org-ssl.erb
modules/bacula/manifests/init.pp
modules/roles/manifests/pubsub.pp
modules/ssl/manifests/init.pp
modules/stunnel4/manifests/generic.pp
modules/stunnel4/templates/stunnel.conf.erb
modules/syslog-ng/templates/syslog-ng.conf.erb

index a329360..081eb42 100644 (file)
@@ -8,7 +8,7 @@
        ServerAdmin debian-admin@debian.org
        SSLEngine on
        SSLCertificateFile     /etc/ssl/debian/certs/thishost-server.crt
-       SSLCertificateKeyFile  /etc/ssl/debian/keys/thishost-server.key
+       SSLCertificateKeyFile  /etc/ssl/private/thishost-server.key
        SSLCertificateChainFile /etc/ssl/debian/certs/ca.crt
 
        ErrorLog /var/log/apache2/error.log
index 0cf33bd..b9d005b 100644 (file)
@@ -30,9 +30,9 @@ class bacula {
 
        $bacula_ca_path           = '/etc/ssl/debian/certs/ca.crt'
        $bacula_ssl_client_cert   = '/etc/ssl/debian/certs/thishost.crt'
-       $bacula_ssl_client_key    = '/etc/ssl/debian/keys/thishost.key'
+       $bacula_ssl_client_key    = '/etc/ssl/private/thishost.key'
        $bacula_ssl_server_cert   = '/etc/ssl/debian/certs/thishost-server.crt'
-       $bacula_ssl_server_key    = '/etc/ssl/debian/keys/thishost-server.key'
+       $bacula_ssl_server_key    = '/etc/ssl/private/thishost-server.key'
 
        file { '/usr/local/sbin/bacula-idle-restart':
                mode    => '0555',
index 9134df0..38b55f7 100644 (file)
@@ -19,7 +19,7 @@ class roles::pubsub {
                ssl               => true,
                ssl_cacert        => '/etc/ssl/debian/certs/ca.crt',
                ssl_cert          => '/etc/ssl/debian/certs/thishost-server.crt',
-               ssl_key           => '/etc/ssl/debian/keys/thishost-server.key',
+               ssl_key           => '/etc/ssl/private/thishost-server.key',
                ssl_port          => 5671,
                ssl_verify        => 'verify_none',
                manage_repos      => false,
index 5aedfbc..8ffe495 100644 (file)
@@ -92,22 +92,10 @@ class ssl {
                ensure  => directory,
                mode    => '0755',
        }
-       file { '/etc/ssl/debian/keys':
-               ensure  => directory,
-               mode    => '0750',
-               group   => ssl-cert,
-               require => Package['ssl-cert'],
-       }
        file { '/etc/ssl/debian/certs/thishost.crt':
                source  => "puppet:///modules/ssl/clientcerts/${::fqdn}.client.crt",
                notify  => Exec['refresh_debian_hashes'],
        }
-       file { '/etc/ssl/debian/keys/thishost.key':
-               source  => "puppet:///modules/ssl/clientcerts/${::fqdn}.key",
-               mode    => '0440',
-               group   => ssl-cert,
-               require => Package['ssl-cert'],
-       }
        file { '/etc/ssl/debian/certs/ca.crt':
                source  => 'puppet:///modules/ssl/clientcerts/ca.crt',
                notify  => Exec['refresh_debian_hashes'],
@@ -119,7 +107,23 @@ class ssl {
                source  => "puppet:///modules/exim/certs/${::fqdn}.crt",
                notify  => Exec['refresh_debian_hashes'],
        }
-       file { '/etc/ssl/debian/keys/thishost-server.key':
+
+       #file { '/etc/ssl/debian/keys/thishost.key':
+       #       ensure => absent,
+       #}
+       #file { '/etc/ssl/debian/keys/thishost-server.key':
+       #       ensure => absent,
+       #}
+       #file { '/etc/ssl/debian/keys':
+       #       ensure => absent,
+       #}
+       file { '/etc/ssl/private/thishost.key':
+               source  => "puppet:///modules/ssl/clientcerts/${::fqdn}.key",
+               mode    => '0440',
+               group   => ssl-cert,
+               require => Package['ssl-cert'],
+       }
+       file { '/etc/ssl/private/thishost-server.key':
                source  => "puppet:///modules/exim/certs/${::fqdn}.key",
                mode    => '0440',
                group   => ssl-cert,
index 9c35709..f7b556b 100644 (file)
@@ -9,7 +9,7 @@ define stunnel4::generic ($client, $verify, $cafile, $accept, $connect, $crlfile
 
        if $client {
                $certfile = '/etc/ssl/debian/certs/thishost.crt'
-               $keyfile = '/etc/ssl/debian/keys/thishost.key'
+               $keyfile = '/etc/ssl/private/thishost.key'
        } else {
                $certfile = '/etc/exim4/ssl/thishost.crt'
                $keyfile = '/etc/exim4/ssl/thishost.key'
index 829b77a..d2a3258 100644 (file)
@@ -5,7 +5,7 @@
 
 <%- if client -%>
 cert = /etc/ssl/debian/certs/thishost.crt
-key = /etc/ssl/debian/keys/thishost.key
+key = /etc/ssl/private/thishost.key
 <%- else -%>
 cert = /etc/exim4/ssl/thishost.crt
 key = /etc/exim4/ssl/thishost.key
index 98c2fb2..c5a881e 100644 (file)
@@ -399,7 +399,7 @@ log {
  <%- if hostname != "lotti" -%>
 destination loghost-lotti {
        tcp("lotti.debian.org" port (5140)
-               tls( key_file("/etc/ssl/debian/keys/thishost.key")
+               tls( key_file("/etc/ssl/private/thishost.key")
                     cert_file("/etc/ssl/debian/certs/thishost.crt")
                     ca_dir("/etc/ssl/debian/certs/")
                )
@@ -409,7 +409,7 @@ destination loghost-lotti {
   <%- if hostname != "lully" -%>
 destination loghost-lully {
        tcp("lully.debian.org" port (5140)
-               tls( key_file("/etc/ssl/debian/keys/thishost.key")
+               tls( key_file("/etc/ssl/private/thishost.key")
                     cert_file("/etc/ssl/debian/certs/thishost.crt")
                     ca_dir("/etc/ssl/debian/certs/")
                )
@@ -419,7 +419,7 @@ destination loghost-lully {
   <%- if hostname != "loghost-grnet-01" -%>
 destination loghost-loghost-grnet-01 {
        tcp("loghost-grnet-01.debian.org" port (5140)
-               tls( key_file("/etc/ssl/debian/keys/thishost.key")
+               tls( key_file("/etc/ssl/private/thishost.key")
                     cert_file("/etc/ssl/debian/certs/thishost.crt")
                     ca_dir("/etc/ssl/debian/certs/")
                )