2012-10-02 4 views
4

새 haproxy를 ssl (1.5-dev12)과 함께 사용하려고합니다. 하지만이 새로운 기능에 오류가 있습니다.SSL을 사용하는 Haproxy가 작동하지 않습니다.

내가 함께 설치했습니다

make TARGET=linux2632 USE_OPENSSL=yes 
make PREFIX=/opt/haproxy-ssl install 

하지만 내 설정 파일을 확인할 때,이 오류했습니다 :

[ALERT] 275/135959 (10998) : parsing [/opt/haproxy-ssl/haproxy.conf:31] : 'bind' : 'ssl' option not implemented. [ALERT] 275/135959 (10998) : parsing [/opt/haproxy-ssl/haproxy.conf:69] : 'server' expects and [:] as arguments. [ALERT] 275/135959 (10998) : Error(s) found in configuration file : /opt/haproxy-ssl/haproxy.conf [WARNING] 275/135959 (10998) : Proxy 'ha_stats': in multi-process mode, stats will be limited to process assigned to the current request. [WARNING] 275/135959 (10998) : stats socket will not work correctly in multi-process mode (nbproc > 1). [ALERT] 275/135959 (10998) : Fatal errors found in configuration.

그리고 haproxy -vv 명령 반환 :

HA-Proxy version 1.5-dev12 2012/09/10 Built without OpenSSL support (USE_OPENSSL not set)

설치하는 동안 아무런 오류가 없지만 openssl이 설정되지 않은 이유를 모르겠습니다.

OS : 데비안 2.6.32-5 - 젠 - AMD64 은 OpenSSL : 2010

0.9.8o 6월 1일 OpenSSL을 당신은 생각을 가지고 있습니까? 의 설치로 해결

:

UPDATE

감사

libssl-dev 

그리고, 새로운 메이크업 대상, 새 접두사와 그 작동합니다.

+0

문제를 재현하려고 시도했지만 haproxy를 컴파일 할 때 작동했습니다. 그건 오타예요? 나는 다음 명령을 사용했다.'make TARGET = linux2628 USE_OPENSSL = 1'. 'USE_OPNSSL' 대신에 목표와'USE_OPENSSL'의 변경을 주목하십시오, 그러나 YMMV. –

답변

7

make 명령을 실행하기 전에 libssl-dev를 설치하고 ssl로 haproxy를 작동시켜야합니다.

+2

CENTOS에서 'openssl-devel'. –

+0

Centos : yum pcre-devel 및 yum openssl-devel – Azim

0

CentOS 및 Ubuntu에서 최신 OpenSSL을 설치할 수 있습니다.

RHEL :

yum install -y make GCC Perl pcre-devel zlib-devel 

우분투 :

apt-get install build-essential make g++ libssl-dev 
이제

,

# wget -O /tmp/openssl.tgz https://www.openssl.org/source/openssl-1.0.2-latest.tar.gz 

# tar -zxf /tmp/openssl.tgz -C /tmp 

# cd /tmp/openssl-* 

# ./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib no-shared zlib-dynamic 

# make 

# make install_sw 

당신은 확인할 수 아래의 명령으로 OpenSSL을 버전,

# openssl version 

OpenSSL 1.0.2j 2016 년 9 월 26 일

관련 문제