LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Squid reverse proxy for Exchange: Errors (https://www.linuxquestions.org/questions/linux-server-73/squid-reverse-proxy-for-exchange-errors-4175460985/)

linuxlover.chaitanya 05-07-2013 03:47 AM

Squid reverse proxy for Exchange: Errors
 
Hi All,

I am trying to configure Squid to work as reverse proxy for Exchange using the How-To on Squid official website. Following is my configuration:

Code:

https_port 443 accel cert=/etc/pki/tls/misc/newcert.pem key=/etc/pki/tls/misc/newkey.pem defaultsite=<our-mail-domain>
cache_peer 10.10.10.13 parent 443 0 no-query originserver login=PASS ssl sslcert=/etc/pki/tls/misc/newcert.pem name=exchangeServer
acl EXCG dstdomain <our-mail-domain>
cache_peer_access exchangeServer allow EXCG
cache_peer_access exchangeServer deny all
never_direct allow EXCG

http_access allow EXCG
http_access deny all
miss_access allow EXCG
miss_access deny all

These are the two links I have referenced:
http://www.brichet.be/?page_id=110
http://wiki.squid-cache.org/ConfigEx...se/ExchangeRpc

I am having errors starting the Squid service. Following is the error:
Code:

FATAL: Failed to acquire SSL private key '/etc/pki/tls/misc/newcert.pem': error:0906D06C:PEM routines:PEM_read_bio:no start line

Squid Cache (Version 3.1.10): Terminated abnormally.
CPU Usage: 0.021 seconds = 0.013 user + 0.008 sys
Maximum Resident Size: 28448 KB
Page faults with physical i/o: 0

Any help would be much appreciated.

acid_kewpie 05-08-2013 01:51 AM

as per the message, the PEM key is broken in some way I'd presume. Is it proeprly unix formatted? Is it actually a pem key?

linuxlover.chaitanya 05-09-2013 01:37 AM

Problem solved. I had two pem files, Certificate and RSA Key. But both were individual. I copied the contents of RSA Key PEM file to certificate PEM file. Squid works fine.

ramin1981 12-29-2014 07:03 AM

Quote:

Originally Posted by linuxlover.chaitanya (Post 4947659)
Problem solved. I had two pem files, Certificate and RSA Key. But both were individual. I copied the contents of RSA Key PEM file to certificate PEM file. Squid works fine.

hi. how did you do it. which key from where copied to destination. Can you please explain it clearely. thanks


All times are GMT -5. The time now is 04:11 AM.