Client
Unpack, ./configure --with-crypto=[path to crypto++] && make && make install.
You need to download Crypto++ from www.cryptopp.com and tell kit where to find
it
Server
Installation of the KiT server is not overly complex. All you need to do is
to create the MySQL database tables, and edit the config file.
Unpack, ./configure --with-crypto=[path to crypto++] && make && make install.
You need to download Crypto++ from www.cryptopp.com and tell kit where to find
it
In order to use KiT, the server needs to store its data somewhere. We've
chosen to use MySQL as our database, but it will be possible to write a
plugin to handle any database.
Now, for mysql you need to:
Create a database
Create a user and set a password
Create the database tables.
Edit server.cpp to include the right values
.
Of course, you can use any existing user and database too.
For full instructions on adding a user, please see section 6.11
in the mysql reference manual. However, you probably need to do
something like this: (Replace everything in [ ] with real values)
bash# mysql --user=root mysql
mysql> CREATE DATABASE kit;
mysql> GRANT ALL PRIVILEGES ON kit.* TO [kituser]@localhost IDENTIFIED BY '[password]';
mysql> quit
bash# mysql --user=[kituser] kit -p
Enter Password: [password]
mysql>
Good, take took care of points one and two on the list above. Now, you need
to write this into the mysql prompt. Please be careful, and check that you
spelled everything correctly.
create table users (
nick VARCHAR(50) NOT NULL ,
password VARCHAR(10),
public_key TEXT,
PRIMARY KEY(nick)
);
create table message (
receiver char(50) NOT NULL,
sender char(50) NOT NULL,
subject VARCHAR(100),
body MEDIUMTEXT,
PRIMARY KEY (receiver)
);
create table contact (
user varchar(50),
contact varchar(50),
nick varchar(50),
protocol varchar(20)
);
create table vars (
user varchar(50),
varname VARCHAR(50) not null,
varvalue TEXT not null
);
create table contact (
user varchar(50),
contact varchar(50),
nick varchar(50),
protocol varchar(20)
);
KiT is known to work with mysql version 3.22.26a.
KiT config file (kitd.conf) - put either in the current dir or in /etc or in KIT_CONFIG_DIR.
<kitd>
<db database="kit" host="[host]" password="[password]" username="[user]"/>
</kitd>
Then run the keygen utility to generate a secret/public keypair for the
server.
Please dont hesitate to mail me if you have any problems.
|