?? building
字號:
Building SimpleCA from source codeSimpleCA is available pre-made for Linux, FreeBSD and Windows.The full source code is available as well. You can build SimpleCAon your own system as long as you can also build cryptlib, the underlyingcryptographic library on which SimpleCA is based.1. crytplibBuilding SimpleCA requires cryptlib. The cryptlib toolkit is availablefrom <http://www.cs.auckland.ac.nz/~pgut001/cryptlib/>. Beforedownloading, be sure to read the license for cryptlib, which isdifferent than the license for SimpleCA.One of the most common problems with building cryptlib on non-Windowssystems is that the cryptlib distribution comes as a .zip file with textendings meant for Windows users. After downloading the cryptlibdistribution (the current file name is "cl31.zip"), be sure to unpack itwith the "unzip -a" command. Ignornig the "-a", or unzipping it onWindows and passing the resulting directory over to Unix, will causeimmediate problems in building.1.1 Changes to cryptlibThe current version of cryptlib, version 3.1, has some restrictions onbuilding certificates that are much more restrictive than thosespecified in the PKIX standard. In specific, you cannot use unmodifiedcryptlib to create certificates that have empty subject names.Fortunately, modifying the cryptlib source to correct this is fairlyeasy.In the file "cert/certdn.c", find the subroutine called "checkDN". (Incryptlib 3.1, that's on line 691.) After the line that reads "BOOLEANhasCountry = ..." (about six lines into the subroutine), add a new line thatjust says "return CRYPT_OK;". This causes all the checks in the "checkDN"subroutine to always return positively.In the file "cryptkey.c", there is an error which prevents the builtmodules from working correctly on FreeBSD. On line 292, removethe '&' in the call, so that it reads: clearTempBignums( contextInfoPtr->ctxPKC );1.2 Building cryptlibBe sure to also download the quite-extensive cryptlib manual, which hasinstructions on building cryptlib.Under Linux and FreeBSD, simply using "make" works just fine.cryptlib does not install its library files, so you will probably needto make links to them in your support directories. For example,ln -s /path/to/cryptlib/build/libcl.a /usr/local/lib/libcl.aln -s /path/to/cryptlib/build/cryptlib.h /usr/local/include/cryptlib.hBuilding under Windows depends on the IDE and tools you use. This will becovered in more detail in future versions of this document.2. Building SimpleCASimpleCA consists of a single source file, simpleca.c.Under Linux, you build the program with a simple "make". The Makefile isconfigured for Linux installs.Under FreeBSD, you need to use "gmake" instead of "make"; you may have toinstall gmake from the FreeBSD ports collection. Also, you need to uncommentthe LFLAGS line in the Makefile that corresponds to builiding for FreeBSD.Building under Windows depends on the IDE and tools you use. This will becovered in more detail in future versions of this document. Be sure that youhave copied the cl32.dll file to the directory from which you are runningSimpleCA.There is no "make install"; copy the binary to your desired location.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -