Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: MarkR on November 23, 2018, 06:39:01 PM

Title: Letencrypt and Password Protected Ibay - password required outside local network
Post by: MarkR on November 23, 2018, 06:39:01 PM
Hi All,

I have installed letsencrypt with no issues and all appears to be working ok, apart from if I select to Password protect the Ibay via the server manager

The apache authentication appears but the certificate is invalid?? (your connection is not private etc etc.)

Once past the apache authentication and on the actual website, the certificate then displays as Valid.

What could be causing this??  is the only way around this to create .htaccess .htpasswd on the ibay itself.

Hope this makes sense.

Many thanks in advance.
Mark

Title: Re: Letencrypt and Password Protected Ibay - password required outside local network
Post by: ReetP on November 24, 2018, 02:24:54 AM
Hi All,

I have installed letsencrypt with no issues and all appears to be working ok, apart from if I select to Password protect the Ibay via the server manager

The apache authentication appears but the certificate is invalid?? (your connection is not private etc etc.)

Once past the apache authentication and on the actual website, the certificate then displays as Valid.

What could be causing this?? 

Good question as I don't see it myself. But that proves nothing much.

What version of letsencrypt are you running:

Code: [Select]
rpm -qa |grep letsencrypt
rpm -qa |grep dehydrated

Quote
is the only way around this to create .htaccess .htpasswd on the ibay itself.

Don't, at least for now..... that may cause other issues. Better to try and nail this one.

Quote
Hope this makes sense.

Not yet, but it may in time :-)

Title: Re: Letencrypt and Password Protected Ibay - password required outside local network
Post by: MarkR on November 26, 2018, 09:51:38 AM
Hi Reetp,

smeserver-letsencrypt-0.4-4.noarch
dehydrated-0.5.0-3.el6.sme.noarch

Many thanks
Title: Re: Letencrypt and Password Protected Ibay - password required outside local network
Post by: ReetP on November 27, 2018, 01:19:09 AM
I'll try to remember to have more of a look at this tomorrow.

Ran out of time today.... and busy tomorrow morning.
Title: Re: Letencrypt and Password Protected Ibay - password required outside local network
Post by: MarkR on November 27, 2018, 10:06:53 AM
I'll try to remember to have more of a look at this tomorrow.

Ran out of time today.... and busy tomorrow morning.

Superb, Many thanks Reetp :-)
Title: Re: Letencrypt and Password Protected Ibay - password required outside local network
Post by: MarkR on November 27, 2018, 03:46:42 PM
A little more info on my setup

Server Name : server.local -> primary Ibay ( not used, noo SSL setup )
Virtual Domain : www.website.com -> Ibay1  -  SSL cert working on site
Virtual Doamin : www.website2.com -> Ibay2  -  SSL cert working on site

Server-manager password protect Ibay2 - Apache Authentication ** NOT Secure **.

thanks in advance
Mark
Title: Re: Letencrypt and Password Protected Ibay - password required outside local network
Post by: ReetP on November 27, 2018, 05:23:25 PM
A little more info on my setup
Server Name : server.local -> primary Ibay ( not used, noo SSL setup )


OK - I can see this now. Have it on my main box when accessing a password enabled Internet wide ibay. And my box has letsencrypt enabled for the main domain too.

No idea I'm afraid. I can only guess that when it uses password authentication it somehow uses the original self signed certificate.

I'll see if someone else pops up with a solution. We may need to bug on this.
Title: Re: Letencrypt and Password Protected Ibay - password required outside local network
Post by: ReetP on November 27, 2018, 05:40:48 PM
Bugged

https://bugs.contribs.org/show_bug.cgi?id=10656
Title: Re: Letencrypt and Password Protected Ibay - password required outside local network
Post by: warren on November 27, 2018, 05:48:14 PM
A little more info on my setup

Server Name : server.local -> primary Ibay ( not used, noo SSL setup )
Virtual Domain : www.website.com -> Ibay1  -  SSL cert working on site
Virtual Doamin : www.website2.com -> Ibay2  -  SSL cert working on site

Server-manager password protect Ibay2 - Apache Authentication ** NOT Secure **.

thanks in advance
Mark

what happens if you set Ibay2 to : Force secure connections : Enabled
Title: Re: Letencrypt and Password Protected Ibay - password required outside local network
Post by: ReetP on November 27, 2018, 06:10:39 PM
what happens if you set Ibay2 to : Force secure connections : Enabled

Mine already was ;-)

So that doesn't work.....