(note: under Debian policy user-modifiable config files can only go under /etc, otherwise they will be replaced without any warning on the next upgrade).
... and now we have a problem. There are a lot of files which includes informations like DNs. Such files are for example prepared mails. Looks like we need two things:
1. a small script which scan every loaded page for items like country and replace it
2. a tool to convert the configuration itself
I think it is a good idea to restart here again because every interface can be configured in a different way. So what do you think about the following (I use ca as an example and OPENCADIR/etc/ is /etc/openca in debian):
1. OPENCADIR/etc/servers/ca.conf is the today's configuration
2. OPENCADIR/etc/servers/ca.conf.template which is a ca.conf but with not replaced country
2. OPENCADIR/etc/servers.ca.xml is the future's configuration if we switch to XML
3. we include in ca.xml a path like this openca/software_config/
4. in this section we build a list:
<option>
<name>country</name>
<value>DE</value>
</option>
We can parse XML really easy so it is no problem to load and use these options.
5. we build a script which reads the original ca.conf.template and create the new ca.conf
6. we create a function which can translate files (perhaps we include it to OpenCA::TRIStrateCGI)
Any comments to these ideas? Perhaps a special character is not enough for the variable so what do you think about a special descriptive prefix?
Michael -- ------------------------------------------------------------------- Michael Bell Email (private): [EMAIL PROTECTED] Rechenzentrum - Datacenter Email: [EMAIL PROTECTED] Humboldt-University of Berlin Tel.: +49 (0)30-2093 2482 Unter den Linden 6 Fax: +49 (0)30-2093 2704 10099 Berlin Germany http://www.openca.org
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ OpenCA-Devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/openca-devel