<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi all , I need a help in setting up squid for https reverse proxy <o:p></o:p></p><p class=MsoNormal>I mean I want to authorize the certificate on my pc so that be able to acces https using http not tunnel method<o:p></o:p></p><p class=MsoNormal>I have searched a lot and most of docs mention ssl pump , but again im here don’t want ssl pump feature and all I need is just reverse proxy.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 1.0pt 0in'><p class=MsoNormal style='border:none;padding:0in'>Here is steps that I did :<o:p></o:p></p></div><p class=MsoNormal>cd /etc/squid<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>openssl req -new -newkey rsa:1024 -days 3650 -nodes -x509 -subj '/C=dsa/ST=asd/L=aaa/O=abcv/CN=abc' -keyout /etc/squid/abc.pem -out <o:p></o:p></p><p class=MsoNormal><o:p></o:p></p><p class=MsoNormal>/etc/squid/abc.pem<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>openssl x509 -in /etc/squid/abc.pem -outform DER -out /etc/squid/abc.der<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>whereis ssl_crtd<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 1.0pt 0in'><p class=MsoNormal style='border:none;padding:0in'>chown squid:squid /var/lib/ssl_db<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>after that edited squid.conf with :<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>https_port 443 cert=/etc/squid/abc.pem key=/etc/squid/abc.pem<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>then went to my browser and added abc.der as authorized certificates<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>when I connect to proxy I have erros logs :<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>2015/04/20 15:44:18 kid1| Error negotiating SSL connection on FD 11: Success (0)<o:p></o:p></p><p class=MsoNormal>2015/04/20 15:44:19 kid1| Error negotiating SSL connection on FD 11: Success (0)<o:p></o:p></p><p class=MsoNormal>2015/04/20 15:44:21 kid1| Error negotiating SSL connection on FD 11: Success (0)<o:p></o:p></p><p class=MsoNormal>2015/04/20 15:44:23 kid1| Error negotiating SSL connection on FD 11: Success (0)<o:p></o:p></p><p class=MsoNormal>2015/04/20 15:45:33 kid1| Error negotiating SSL connection on FD 11: Success (0)<o:p></o:p></p><p class=MsoNormal>2015/04/20 15:45:33 kid1| Error negotiating SSL connection on FD 11: Success (0)<o:p></o:p></p><p class=MsoNormal>2015/04/20 15:47:01 kid1| Error negotiating SSL connection on FD 11: Success (0)<o:p></o:p></p><p class=MsoNormal>2015/04/20 15:53:44 kid1| Error negotiating SSL connection on FD 11: Success (0)<o:p></o:p></p><p class=MsoNormal>2015/04/20 15:53:46 kid1| Error negotiating SSL connection on FD 11: Success (0)<o:p></o:p></p><p class=MsoNormal>2015/04/20 15:53:47 kid1| Error negotiating SSL connection on FD 11: Success (0)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Where could be the problem ?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Here is my squid config :<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>squid -v<o:p></o:p></p><p class=MsoNormal>Squid Cache: Version 3.5.1<o:p></o:p></p><p class=MsoNormal>Service Name: squid<o:p></o:p></p><p class=MsoNormal>configure options: '--prefix=/usr' '--includedir=/include' '--mandir=/share/man' '--infodir=/share/info' '--sysconfdir=/etc' '--enable-cachemgr-hostname=drx' '--localstatedir=/var' '--libexecdir=/lib/squid' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-silent-rules' '--srcdir=.' '--datadir=/usr/share/squid' '--sysconfdir=/etc/squid' '--mandir=/usr/share/man' '--enable-inline' '--enable-async-io=8' '--enable-storeio=ufs,aufs,diskd,rock' '--enable-removal-policies=lru,heap' '--enable-delay-pools' '--enable-cache-digests' '--enable-underscores' '--enable-icap-client' '--enable-follow-x-forwarded-for' '--enable-auth' '--enable-basic-auth-helpers=LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,DB,POP3,getpwnam,squid_radius_auth,multi-domain-NTLM' '--enable-ntlm-auth-helpers=smb_lm' '--enable-digest-auth-helpers=ldap,password' '--enable-negotiate-auth-helpers=squid_kerb_auth' '--enable-esi' '--disable-translation' '--with-logdir=/var/log/squid' '--with-pidfile=/var/run/squid.pid' '--with-filedescriptors=131072' '--with-large-files' '--with-default-user=squid' '--enable-linux-netfilter' '--enable-ltdl-convenience' '--enable-ssl' '--enable-ssl-crtd' '--enable-arp-acl' 'CXXFLAGS=-DMAXTCPLISTENPORTS=20000' '--with-openssl' '--enable-snmp'<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>cheers<o:p></o:p></p></div></body></html>