Closed fbacchella closed 8 years ago
surely the client only needs a private key for its own certificate, maybe it's simply looking for the file with the puppet-server hostname, when it should be using the client's key.
Yes, this plugin miss a argument: certName, to build the certificate (.../certs/rundeck.mydomain.pem
) and private key (.../private_keys/rundeck.mydomain.pem
) file name. The server will be identified using the CA file (.../ca/ca_crt.pem
)
close by commit b63a1a80a81e76e47463683826b55955f4e7509e
In the plug in help of the current version (0.9.3), it says :
configuration: resources.source.[index].config.PROPERTY_PUPPETDB_SSL_DIR=value
And indeed in the logs I see: Caused by: java.io.FileNotFoundException: /data/rundeck/var/sslpuppet/private_keys/puppedb.mydomain.pem (No such file or directory)
But I generate a certificate for rundeck with puppet cert --generate rundeck.mydomain and give it to curl and it worked:
returned
So why this plugin looks for /data/rundeck/var/sslpuppet/private_keys/puppedb.mydomain.pem ?
I will not give one of the most important secret of the environment (the key to puppet) to an application.