[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Seeding certificates at install time

On 11/29/10 10:19 AM, Brian C. Lane wrote:
On Sat, Nov 27, 2010 at 11:09:55PM -0700, Philip Prindeville wrote:
Regarding a posting recently on fedora-devel, I'm considering what would be involved in making the self-signed certificates that various RPM's install as part of their %post/%pre section (openssl, sendmail, mod_ssl, proftpd, cyrus-imapd, etc) be a bit more meaningful than just:
I think this is what /etc/pki/tls/openssl.cnf is for. You edit it and
set the *_default values and they are used for any openssl cert

Ok, so how about adding a command line option to kickstart and an extra (optional) screen to Anaconda that allows one to populate the fields for countryName_default, stateOrProvinceName_default, etc.?

The other thing that would be useful to have, but this is more of a packaging issue, would be to be able to re-run the %post/%pre scripts (or the idempotent sections of them) that generate certificates or otherwise network identity-derived configuration.

I think it would be useful for the packages doing this to break these
out into helper scripts that they install, and then call them from %post
instead of trying to hack up some kind of mechanism to re-run them

Tell you what.  If you can file a bug against anaconda/kickstart and submit a patch, I'll fix all of the packages %post scripts to install a stand-alone script and run that.  The only tricky bit is some packages generate their certificates in the %pre section, before that script would have been installed.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]