- From: Sölvi Páll Ásgeirsson <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Handle with Tomcat Certificates
- Date: Mon, 28 Oct 2013 21:19:55 +0000
We use data bags to store base64-encoded PKCS12 certificate bundles.
The following code is used to save the certificates locally in their original binary form:
ruby_block "save certificate #{cert['cn']}" do
block do
require 'base64'
::File.open(pfx_file_path, "wb") { |file| file.write(Base64.decode64 cert["pfx"]) }
Chef::Log.info("Certificate #{cert['subject']} downloaded")
end
not_if { ::File.exists? pfx_file_path }
end
Going the other way around shouldn't be hard.
Hope this helps,
Sölvi Páll Á.
- [chef] Re: Handle with Tomcat Certificates, (continued)
- [chef] Re: Handle with Tomcat Certificates, Tom Duffield, 10/28/2013
- [chef] Re: Re: Handle with Tomcat Certificates, Eduardo Dias, 10/28/2013
- [chef] Re: Re: Re: Handle with Tomcat Certificates, Tom Duffield, 10/28/2013
- [chef] Re: Re: Re: Re: Handle with Tomcat Certificates, Eduardo Dias, 10/28/2013
- [chef] Re: Re: Re: Re: Re: Handle with Tomcat Certificates, Tom Duffield, 10/28/2013
- [chef] Re: Re: Re: Re: Re: Re: Handle with Tomcat Certificates, Eduardo Dias, 10/28/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: Handle with Tomcat Certificates, Arnold Krille, 10/28/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Handle with Tomcat Certificates, Eduardo Dias, 10/28/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Handle with Tomcat Certificates, Sölvi Páll Ásgeirsson, 10/28/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Handle with Tomcat Certificates, Eduardo Dias, 10/28/2013
Archive powered by MHonArc 2.6.16.