Copyright (C) 2009-2023 EnterSafe.
http://www.EnterSafe.com

EnterSafe Castle SDK For Linux
-------------------------------

	This package is EnterSafe Castle SDK with Cryptoki(PKCS#11) for Linux.It now supports ePass2003,ePass2003auto USB tokens.


How to use it
-------------

	1: This package is green software that you needn't to install it,you can copy it to system library dir or any where just you want.

	2: For non-root user can communication with USB key,we must change the mode of the USB key's device file,we offer two shell scripts to do this. su to root and execute "sh config.sh" at first time before insert the USB key,if you don't used this SDK, just execute "sh unconfig.sh".

	3: If your system enable selinux, you need execute "chcon -t texrel_shlib_t libcastle.so.1.0.0".

	4: This support max 256 USB key in it.

	5: For mozilla firefox or thunder bird mail
	Run mozilla, open the menu "Edit"--->"Preferences"--->"Private & Security" ---->"Certificates" ---> "Manage Security Devices", and then add our "/your path/libcastle.so.1.0.0" to mozilla.
	 
	OR
	if your firefox or thunderbird's install directory is /usr/lib,then
	for Firefox enter the directory redist/NSS_Firefox_register,then if you add module,sh  register_Firefox.sh  A moduleName
	,and if you delete  module sh register_Firefox.sh  D moduleName.
	for Thunderbird enter the directory redist/NSS_Thunderbird_register,then if you add module,sh register_Thunderbird.sh A moduleName 
	,and if you delete module  sh register_Thunderbird.sh  D moduleName.
	

File List
---------

	The introduce of main files.

	config: This dir include two shell files that to change the usb device file's mode.
		config.sh: 	Change the system configures.
		unconfig.sh: 	Unchanged the system configures.

	readme: This file.
	redist: Contain library file and user manager tool.
		libcastle.so.1.0.0: 	EnterSafe Shuttle Linux PKCS#11 library.
		pkimanager	: 	User pki manager.
		pkimanager_admin: 	Administrator pki manager.

		NSS_Firefox_register   	::register Firefox p11 tools and shell's file
			nssFirefox		:register Firefox execl file .
			register_Firefox.sh	:shell file

		NSS_Thunderbird_register ::register Thunderbird p11 tools shell's file
			nssThunderbird    	: register Thunderbird execl file .
			register_Thunderbird.sh	: shell file

	sample: Contain the include file and some sample source.

