Apache+Openssl

 

Apache编译还需要一些依赖:

#./configure --prefix……检查编辑环境时出现:

checking for APR... no
configure: error: APR not found .  Please read the documentation

解决办法:

1.下载所需软件包:

  1. wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz
  2. wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz
  3. wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip

2.编译安装:

  1. yum remove apr-util-devel apr apr-util-mysql apr-docs apr-devel apr-util apr-util-docs

具体步骤如下:

a:解决apr not found问题>>>>>>

  1. [[email protected] test]# tar -zxf apr-1.4.5.tar.gz
  2. [[email protected] test]# cd  apr-1.4.5
  3. [[email protected] apr-1.4.5]# ./configure --prefix=/usr/local/apr
  4. [[email protected] apr-1.4.5]# make && make install

b:解决APR-util not found问题>>>>

  1. [[email protected] test]# tar -zxf apr-util-1.3.12.tar.gz
  2. [[email protected] test]# cd apr-util-1.3.12
  3. [[email protected] apr-util-1.3.12]# ./configure --prefix=/usr/local/apr-util -with- apr=/usr/local/apr/bin/apr-1-config
  4. [[email protected] apr-util-1.3.12]# make && make install

c:解决pcre问题>>>>>>>>>

  1. [[email protected] test]#unzip -o pcre-8.10.zip
  2. [[email protected] test]#cd pcre-8.10
  3. [[email protected] pcre-8.10]#./configure --prefix=/usr/local/pcre
  4. [[email protected] pcre-8.10]#make && make install

4.最后编译Apache时加上:

--with-apr=/usr/local/apr \

--with-apr-util=/usr/local/apr-util/ \

--with-pcre=/usr/local/pcre

成功编译完成~

具体可以参考:

http://xtony.blog.51cto.com/3964396/836508/

时间: 2024-08-03 16:46:21

Apache+Openssl的相关文章

win7 apache+openssl 安装

win7 apache+openssl 安装 博客分类: win7 apache+openssl 安装 win7 apache+openssl 安装 注:附件提供包含apache和openssl的安装文件 1.安装前准备apache_2.2.11-win32-x86-openssl-0.9.8i.msi(此处应选支持openssl版本的安装,否则安装后无用),openssl-0.9.8.tar.gz 2.安装apache时选择目录最好不包含中文目录或者默认的Program Files (x86)

Linux+Apache+openssl

实现https验证apache2.0 https 首先安装SSL,再编译安装APACHE,再配置证书即可 1.下载apache和openssl 网址: http://www.apache.org http://www.openssl.org 2.解压 #tar zxvf httpd-2.0.54.tar.gz #tar zxvf openssl-0.9.7g.tar.gz 3.编译安装openssl, 这个软件主要是用来生成证书: #cd openssl-0.9.7g #./config #ma

linux下apache+openssl配置记录

最近在研究linux下的apache-ssl配置,写点个人小心得,新人发博,敬请见谅. 软件环境 Apache Httpd 2.2.29 (http://httpd.apache.org ) OpenSSL 1.0.1h (http://www.openssl.org/source ) SSL-Tools (http://www.openssl.org/contrib/ssl.ca-0.1.tar.gz ) 1. OpenSSL #tar zxvf openssl-1.0.1h.tar.gz #

Apache OpenSSL生成证书使用

最近在学习SSL协议,这次是基于Apache服务器自带的openssl来实现的 TLS:传输层安全协议 SSL:安全套接字层 KEY:私钥 CSR:证书签名请求,即公钥,生成证书时需要将此提交给证书机构,生成 X509 数字证书前,一般先由用户提交证书申请文件,然后由 CA 来签发证书 CRT:即证书,一般服务器证书server.crt和客户端证书client.crt都需要通过CA证书ca.crt进行签名 1.进行CA签名获取证书时,需要注意国家.省.单位需要与CA证书相同,否则会报:     

apache+openssl搭建

最近漏洞扫描发现很多问题,故而升级apache,并且安装新版的openssl,并且这个openssl和系统的不冲突 一 安装需要的包 以及环境 环境:centos7.6 openssl 版本 [[email protected] ~]# openssl version -aOpenSSL 1.0.2k-fips 26 Jan 2017built on: reproducible build, date unspecifiedplatform: linux-x86_64options: bn(64

Java Keystore 与Openssl Pem 的转换

一般情况,生成证书会用到java的keytool生成自签名证书,用在tomcat.applet等场合,生成的证书都是二进制文件,不能直接在nginx.或需要pem的场合下使用,因此需要对其进行各种常用转换,下面是一个典型的使用场景. 1 利用keytool生成store并转换为PKCS#12 keytool -genkey -alias clusterkey -dname "CN=xxxx" -keyalg RSA -keystore cluster.store -storepass

Windows下Apache添加SSL模块

参考资料:http://www.yuansir-web.com/2011/05/12/hello-world/测试环境:windows2003 32位 + Apache2.4 + PHP5.4 一.准备工作 安装好 Apache + openssl win32openssl 下载地址 http://slproweb.com/products/Win32OpenSSL.html,最好下载完整包(或者可以自己编译openssl) VC++ 2008安装 二.生成CA证书 首先cmd命令进入{Apac

openssl数字证书常见格式与协议介绍

证书主要的文件类型和协议有: PEM.DER.PFX.JKS.KDB.CER.KEY.CSR.CRT.CRL .OCSP.SCEP等. PEM – Openssl使用 PEM(Privacy Enhanced Mail)格式来存放各种信息,它是 openssl 默认采用的信息存放方式.Openssl 中的 PEM 文件一般包含如下信息: 内容类型:表明本文件存放的是什么信息内容,它的形式为“——-BEGIN XXXX ——”,与结尾的“——END XXXX——”对应. 头信息:表明数据是如果被处

apache相关实验-2

一.Apache+openssl 实现 https HTTPS(全称:Hypertext Transfer Protocol Secure,超文本传输安全协议),是以安全为目标的 HTTP 通道,简单讲是 HTTP 的安全版.即 HTTP 下加入 SSL 层,用于安全的 HTTP 数据传输.这个系统被内置于浏览器中,提供了身份验证与加密通讯方法.现在它被广泛用于万维网上安全敏感的通讯,例 如交易支付方面. 1.检查模块是否开启 [[email protected] ~]# /usr/local/