How to building OpenSSL 0.9.8c
来源:互联网 发布:软件新品发布会 ppt 编辑:程序博客网 时间:2024/04/30 06:48
Building a Web Server, for Linux
Requirements
Perl
Download
- Package(Linux source) : openssl-0.9.8c.tar.gz
- Unpack with command...
tar -xzf openssl-0.9.8c.tar.gz
Our Configuration
- Install to : /usr/local/ssl
- Module type : dynamically and staticly loaded modules, *.so *.a
Build Instructions
Configure
.../openssl-0.9.8c]# ./config --prefix=/usr/local/ssl-0.9.8c shared zlib-dynamic enable-camellia
--prefix=/usr/local/ssl-0.9.8c
[this is the installation location; default is '/usr/local/ssl' -- which we will symlink]shared
[in addition to the usual static libraries, create shared libraries]zlib-dynamic
[like "zlib", but has OpenSSL load the zlib library dynamically when needed]enable-camellia
[enables the symmetric cipher 'Camellia' (128-bit, 192-bit, 256-bit key versions), which is now available for royalty-free use]
display guess on system made by './config'...
.../openssl-0.9.8c]# ./config -t
Build and Install
.../openssl-0.9.8c]# make depend
[step required since extra cipher was enabled].../openssl-0.9.8c]# make
.../openssl-0.9.8c]# make test
.../openssl-0.9.8c]# make install
Symlink
Form symlink from '/usr/local/ssl-0.9.8c' to '/usr/local/ssl'
...]# cd /usr/local
/usr/local]# ln -s ssl-0.9.8c ssl
Update the Run-time Linker
ld.so.cache will need to be updated with the location of the new OpenSSL shared libs: libcrypto.so.0.9.8 and libssl.so.0.9.8
Sometimes it is sufficient to just symlink or copy these two files to /lib, but we recommend you follow these instructions instead.
Edit /etc/ld.so.conf, add to paths...
/usr/local/ssl/lib
Update the run-time linker...
...]# ldconfig
Update the PATH
Edit /root/.bash_profile, add to PATH variable...
/usr/local/ssl/bin
Re-login.
[sanity check] OpenSSL
Verify that binary 'openssl' is linking against the correct ssl libraries...
...]# ldd /usr/local/ssl/bin/openssl
- libssl.so.0.9.8 => /usr/local/ssl-0.9.8c/lib/libssl.so.0.9.8 ...
- libcrypto.so.0.9.8 => /usr/local/ssl-0.9.8c/lib/libcrypto.so.0.9.8 ...
...]# which openssl
/usr/local/ssl/bin/openssl
...]# openssl version
OpenSSL 0.9.8c 05 Sep 2006
If another path, or an older version is shown, your system contains a previously installed OpenSSL that is first [relative to the newer openssl] in the path.
Repeate the steps in section 'Update the PATH', except place the specified location at the start of the PATH variable.
Note that the older openssl, on most systems, is located under /usr/bin
The location of 'openssl' can be found with...
...]# which openssl
转载http://www.devside.net/guides/linux/openssl
- How to building OpenSSL 0.9.8c
- How to compile openssl library
- How to solve building errors in XPCOM?
- THE JAM BUILDING TOOL-Jamfile how to
- How to cross-compile OpenSSL for ARM
- How To Compile OpenSSL for the iPhone
- how to c libraries
- how to C
- How to disable optimization when building WRK for easily debug?
- How to sign an IIS SSL certificate request using OpenSSL
- AES - How to do encryption using AES in Openssl
- C HOW TO PROGRAM!中
- how to debug c problem
- Concise steps to Building and Installing the FIPS Object Module with OpenSSL (Unix/Linux)
- How to wrap C functions to OCaml
- How to share text to Message in the app you are building(iOS platform)
- Building OpenSSL for Visual Studio
- AES - how to use OpenSSL to decrypt Java AES-encrypted data?
- 74.Isomorphic Strings
- 5-8 UVA 230 Borrowers图书管理系统
- 十步完全理解SQL
- 什么是XML?
- 数据结构与算法——在一个数组中实现两个堆栈(C语言)
- How to building OpenSSL 0.9.8c
- poj2386
- 2015年第六届蓝桥杯C/C++程序设计本科B组省赛 奖券数目(结果填空)
- wordpress禁用scandir引起的错误
- pcl 1.8.0(2) eigen 编译
- RFM模型及其用户运营实践
- Android之广播机制简介一
- Android模拟文件上传---------------找不到错误
- 第九章 虚拟存储器