简体   繁体   English

没有创建人偶apach :: vhost ssl_cert,ssl_key

[英]Puppet apach::vhost ssl_cert, ssl_key are not being created

Im trying to puppetize a server, and in the .pp apache config file I have: 我正在尝试伪造服务器,并且在.pp apache配置文件中,我有:

apache::vhost { "000-default-ssl":
    servername       => "$sitename",
    serveraliases    => ["$sitename"],
    serveradmin      => 'webmaster@localhost',
    port             => '443',
    docroot          => "/path/to/docroot",
    access_log_file  => 'ssl-access.log',
    error_log_file   => 'ssl-error.log',
    ssl              => true,
    ssl_cert         => '/data/ssl/www/365_acdsee_com.crt',
    ssl_key          => '/data/ssl/www/365_acdsee_com.key',
    #...morecode...
  }

And when I run it, the file 000-default-ssl.conf is made and everything, but then when i look in /data/ssl/www/ it's empty. 而当我运行它时,文件000-default-ssl.conf就已经制作好了,但是,当我在/ data / ssl / www /中查找时,它是空的。 neither 365_acdsee_com.crt, or 365_acdsee_com.key are there. 365_acdsee_com.crt或365_acdsee_com.key都不存在。

So my question is: Is declaring the lines ssl_key and ssl_cert supposed to create the certificate and key, or do I have to have something else that generates them, and if not why isnt it making the files??? 所以我的问题是:声明ssl_key和ssl_cert行应该创建证书和密钥,还是我必须要有其他生成它们的文件,如果不是,为什么不创建文件?

Is declaring the lines ssl_key and ssl_cert supposed to create the certificate and key ? 声明ssl_key和ssl_cert行应该创建证书和密钥吗?

No. It will not generate cert and/or key. 不会。它不会生成证书和/或密钥。 You have to generate these files manually or get from some cert provider. 您必须手动生成这些文件或从某些证书提供者那里获取。

Look at the source code of vhost.pp . 查看vhost.pp的源代码。 These values are used to generate config file ${priority_real}${filename}.conf , from the _ssl.erb 这些值用于从_ssl.erb生成配置文件${priority_real}${filename}.conf

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM