Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > ae97f6e039aa7bfa30701e9e1d87213e > files > 12

xca-0.7.0-1mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
 <TITLE>XCA : Updating from older versions</TITLE>
 <LINK HREF="xca-3.html" REL=next>
 <LINK HREF="xca-1.html" REL=previous>
 <LINK HREF="xca.html#toc2" REL=contents>
</HEAD>
<BODY>
<A HREF="xca-3.html">Next</A>
<A HREF="xca-1.html">Previous</A>
<A HREF="xca.html#toc2">Contents</A>
<HR>
<H2><A NAME="s2">2.</A> <A HREF="xca.html#toc2">Updating from older versions</A></H2>

<P>Older versions of XCA used a Berkely database for storing the crypto items.
Starting from version 0.6.0 this has changed to a simple
endian independent file format for several reasons:
<UL>
<LI>The Berkeley db API was a moving target and every distribution had different versions installed.
Handling all versions well ended up in an "#ifdef hell"
where every second build failure was based on a different API in an other db version.</LI>
<LI>The database got corrupted if a log.0000001 file was deleted.</LI>
<LI>copying a database from one place to another was only possible, if
the log file was also copied. This breaks the approach of having
one single, simpe file containing the crypto items.</LI>
</UL>
</P>
<P>Since XCA 0.6.0 is not compiled with Berkeley DB support it cannot read old
file formats. The extension of files has changed from *.db to *.xdb .
Importing old databases is done by the following steps:
<UL>
<LI>Use db_dump of your distribution to dump the database to an ASCII file.
(Windows users will find a db_dump.exe in the XCA installation dir).
The command is: db_dump -f xca.db.dump xca.db</LI>
<LI>Start XCA and open a new database (e.g. xca.xdb). XCA asks for a
password for this new, empty database.</LI>
<LI>Point your mouse to "File->Import old db_dump" and select the file "xca.db.dump"</LI>
<LI>XCA now asks for the password of the ORIGINAL database, since the ASCII
dump still contains the private keys encrypted with the password.</LI>
<LI>Enjoy XCA 0.6.0</LI>
</UL>
</P>


<HR>
<A HREF="xca-3.html">Next</A>
<A HREF="xca-1.html">Previous</A>
<A HREF="xca.html#toc2">Contents</A>
</BODY>
</HTML>