官术网_书友最值得收藏!

Pre-signing certificates

Because of the security implications, it's best to avoid using autosign if you can help it. In general, if you want to automate adding a large number of clients, it's better to pre-generate the certificates on the Puppetmaster and then push them to the client as part of the build process. You can use puppet cert --generate <hostname> to do this.

How to do it...

  1. Generate a pre-signed certificate for client1.example.com with the following command:
    puppet cert --generate client1.example.com
    

    Puppet will now generate and sign a client certificate in the name of client1.example.com.

  2. Transfer the three required files; the private key, the client certificate, and the CA certificate, to the new client. These are found in the following locations:
    /etc/puppet/ssl/private_keys/client1.example.com.pem
    /etc/puppet/ssl/certs/client1.example.com.pem
    /etc/puppet/ssl/certs/ca.pem
    

    Transfer these to the corresponding directories on the client, and it will then be authenticated without the certificate request step. Note that the location of Puppet's SSL certs varies according to the ssldir setting in puppet.conf.

See also

Using autosign in this chapter

主站蜘蛛池模板: 精河县| 阳城县| 文昌市| 新竹市| 山阴县| 云南省| 稻城县| 梁山县| 乐陵市| 科技| 柯坪县| 商南县| 安乡县| 深州市| 招远市| 台北市| 新巴尔虎左旗| 丹阳市| 弥渡县| 闽清县| 花莲市| 象州县| 梁河县| 都兰县| 杨浦区| 珠海市| 牟定县| 东海县| 金溪县| 阳谷县| 鄢陵县| 安宁市| 洛隆县| 高州市| 安阳县| 肇州县| 龙江县| 集贤县| 吴旗县| 卫辉市| 玉田县|