Bug 11364 - https doesn't work using apache-mod_nss
Summary: https doesn't work using apache-mod_nss
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 3
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: has_procedure advisory MGA3-64-OK MGA...
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2013-10-03 01:09 CEST by Thomas Spuhler
Modified: 2013-11-30 23:02 CET (History)
6 users (show)

See Also:
Source RPM: apache-mod_nss
CVE:
Status comment:


Attachments

Description Thomas Spuhler 2013-10-03 01:09:40 CEST
https doesn't work using apache-mod_nss.
https works using apache-mod_ssl
version: apache-mod_nss-1.0.8-15
upgrade apache-mod_nss-1.0.8-15.1 solves this problem
Thomas Spuhler 2013-10-03 01:12:16 CEST

Status: NEW => ASSIGNED

Comment 1 Thomas Spuhler 2013-10-03 01:27:39 CEST
Advisory:
=========
I have updated apache-mod_nss-1.0.8-15 to rel 15.1

Updated packages are in core/updates_testing:
========================
apache-mod_nss-1.0.8-15.1
same src package

I have updated this package on my own e-mail server.
I have been using it during my last trip by checking e-mail from hotels using  the kolab mailserver through Roundcubemail.
In order to test it this way, one needs to change the following line in 
/etc/roundcubemail/main.inc.php

$rcmail_config['force_https'] = false;

to  

$rcmail_config['force_https'] = 8443;

(to make roundcubemail using https instead of http)

CC: (none) => thomas
Assignee: bugsquad => qa-bugs

Comment 2 Thomas Spuhler 2013-10-03 02:37:53 CEST
my bad: Just test with https://localhost:8443/ in your browser
claire robinson 2013-10-03 17:19:54 CEST

Whiteboard: (none) => has_procedure

Comment 3 claire robinson 2013-10-14 10:14:07 CEST
Testing mga2 64

Before
------
# urpme apache-mod_ssl
# netstat -pant | grep 443
# urpmi apache-mod_nss

installing apache-mod_nss-1.0.8-15.mga3.x86_64.rpm from /var/cache/urpmi/rpms                                                               
Preparing...                     ##########################
      1/1: apache-mod_nss        ##########################

apache-mod_nss certificate database generated.

----------------------------------------------------------------------
More information on package apache-mod_nss-1.0.8-15.mga3.x86_64

NOTE: You may need to convert your existing ssl certs
These links provide a good how-to:

http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html
http://www.mozilla.org/projects/security/pki/nss/tools/pk12util.html
http://directory.fedora.redhat.com/wiki/Mod_nss

----------------------------------------------------------------------

# netstat -pant | grep 443
# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
# netstat -pant | grep 443

Netstat shows nothing listening. Browsing to https://localhost:8443 shows unable to connect.

After
-----

There is an error in the %post script

installing apache-mod_nss-1.0.8-15.1.mga3.x86_64.rpm from /var/cache/urpmi/rpms                                                             
Preparing...                     ##########################
      1/1: apache-mod_nss        ##########################
Failed to issue method call: Unit httpd-prefork.service failed to load: No such file or directory. See system logs and 'systemctl status httpd-prefork.service' for details.
warning: %post(apache-mod_nss-1.0.8-15.1.mga3.x86_64) scriptlet failed, exit status 6
ERROR: 'script' failed for apache-mod_nss-1.0.8-15.1.mga3.x86_64: 
      1/1: removing apache-mod_nss-1.0.8-15.mga3.x86_64
                                 ########################
----------------------------------------------------------------------
More information on package apache-mod_nss-1.0.8-15.1.mga3.x86_64

NOTE: You may need to convert your existing ssl certs
These links provide a good how-to:

http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html
http://www.mozilla.org/projects/security/pki/nss/tools/pk12util.html
http://directory.fedora.redhat.com/wiki/Mod_nss

----------------------------------------------------------------------


It is now listening though and connects Ok in a browser.

# netstat -pant | grep 443
tcp        0      0 :::8443     :::*      LISTEN      19354/httpd


So OK apart from the error in %post

Whiteboard: has_procedure => has_procedure feedback

Comment 4 claire robinson 2013-10-14 10:18:10 CEST
Also a bad link in the readme.urpmi, should be..

http://directory.fedoraproject.org/wiki/Mod_nss
Comment 5 claire robinson 2013-10-14 10:24:44 CEST
Testing was mga3 64 in comment 3, sorry, not mga2.
Comment 6 Thomas Spuhler 2013-10-14 19:57:59 CEST
you are correct, the link is wrong. I will correct it. Must have been wrong for a long time.
Comment 7 Thomas Spuhler 2013-10-15 01:38:42 CEST
(In reply to claire robinson from comment #3)
> Testing mga2 64
> 
> Before
> ------
> # urpme apache-mod_ssl
> # netstat -pant | grep 443
> # urpmi apache-mod_nss
> 
> installing apache-mod_nss-1.0.8-15.mga3.x86_64.rpm from
> /var/cache/urpmi/rpms                                                       
> 
> Preparing...                     ##########################
>       1/1: apache-mod_nss        ##########################
> 
> apache-mod_nss certificate database generated.
> 
> ----------------------------------------------------------------------
> More information on package apache-mod_nss-1.0.8-15.mga3.x86_64
> 
> NOTE: You may need to convert your existing ssl certs
> These links provide a good how-to:
> 
> http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html
> http://www.mozilla.org/projects/security/pki/nss/tools/pk12util.html
> http://directory.fedora.redhat.com/wiki/Mod_nss
> 
> ----------------------------------------------------------------------
> 
> # netstat -pant | grep 443
> # service httpd restart
> Redirecting to /bin/systemctl restart httpd.service
> # netstat -pant | grep 443
> 
> Netstat shows nothing listening. Browsing to https://localhost:8443 shows
> unable to connect.
> 
> After
> -----
> 
> There is an error in the %post script
> 
> installing apache-mod_nss-1.0.8-15.1.mga3.x86_64.rpm from
> /var/cache/urpmi/rpms                                                       
> 
> Preparing...                     ##########################
>       1/1: apache-mod_nss        ##########################
> Failed to issue method call: Unit httpd-prefork.service failed to load: No
> such file or directory. See system logs and 'systemctl status
> httpd-prefork.service' for details.
> warning: %post(apache-mod_nss-1.0.8-15.1.mga3.x86_64) scriptlet failed, exit
> status 6
> ERROR: 'script' failed for apache-mod_nss-1.0.8-15.1.mga3.x86_64: 
>       1/1: removing apache-mod_nss-1.0.8-15.mga3.x86_64
>                                  ########################
> ----------------------------------------------------------------------
> More information on package apache-mod_nss-1.0.8-15.1.mga3.x86_64
> 
> NOTE: You may need to convert your existing ssl certs
> These links provide a good how-to:
> 
> http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html
> http://www.mozilla.org/projects/security/pki/nss/tools/pk12util.html
> http://directory.fedora.redhat.com/wiki/Mod_nss
> 
> ----------------------------------------------------------------------
> 
> 
> It is now listening though and connects Ok in a browser.
> 
> # netstat -pant | grep 443
> tcp        0      0 :::8443     :::*      LISTEN      19354/httpd
> 
> 
> So OK apart from the error in %post

Thanks for catching this. I intended (and forgot) to put into the install text that a new certificate needs to be created or the old one to be moved to the new location which is now /etc/pki/nss/apache-mod_nss/
But I decided to change the %post script. This should be safe as nobody was able to use this package. The change log is self-explanatory.
The package is now in upgrade-testing as 15.2
Comment 8 claire robinson 2013-10-15 18:29:31 CEST
Thankyou Thomas

Whiteboard: has_procedure feedback => has_procedure

Comment 9 claire robinson 2013-10-24 09:58:03 CEST
Testing mga3 64

Still issues in %post I'm afraid Thomas. The link doesn't appear to have been updated either.

installing apache-mod_nss-1.0.8-15.2.mga3.x86_64.rpm from /var/cache/urpmi/rpms                                                             
Preparing...                     ##########################
      1/1: apache-mod_nss        ##########################
Failed to issue method call: Unit httpd-prefork.service failed to load: No such file or directory. See system logs and 'systemctl status httpd-prefork.service' for details.
warning: %post(apache-mod_nss-1.0.8-15.2.mga3.x86_64) scriptlet failed, exit status 6
ERROR: 'script' failed for apache-mod_nss-1.0.8-15.2.mga3.x86_64: 
      1/1: removing apache-mod_nss-1.0.8-15.mga3.x86_64
                                 ##########################
----------------------------------------------------------------------
More information on package apache-mod_nss-1.0.8-15.2.mga3.x86_64

NOTE: You may need to convert your existing ssl certs
These links provide a good how-to:

http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html
http://www.mozilla.org/projects/security/pki/nss/tools/pk12util.html
http://directory.fedora.redhat.com/wiki/Mod_nss

----------------------------------------------------------------------

Whiteboard: has_procedure => has_procedure feedback

Comment 10 claire robinson 2013-10-24 09:59:36 CEST
# urpme apache-mod_nss
removing apache-mod_nss-1.0.8-15.2.mga3.x86_64
Failed to issue method call: Unit httpd-prefork.service not loaded.
Failed to issue method call: No such file or directory
removing package apache-mod_nss-1.0.8-15.2.mga3.x86_64
      1/1: removing apache-mod_nss-1.0.8-15.2.mga3.x86_64
                                 ###################################
claire robinson 2013-10-24 10:04:22 CEST

Source RPM: (none) => apache-mod_nss

Comment 11 claire robinson 2013-11-07 22:41:48 CET
Assigning Thomas for now. 

Please reassign to QA when when you've had a chance to take a look. 

Thanks.

CC: (none) => qa-bugs
Assignee: qa-bugs => thomas

claire robinson 2013-11-07 22:41:58 CET

Whiteboard: has_procedure feedback => has_procedure

Comment 12 Thomas Spuhler 2013-11-10 00:38:42 CET
Claire:
I tested this on my VM and here is what I got:
# urpmi apache-mod_nss


    http://mirrors.kernel.org/mageia/distrib/3/x86_64/media/core/updates_testing/apache-mod_nss-1.0.8-15.2.mga3.x86_64.rpm
installing apache-mod_nss-1.0.8-15.2.mga3.x86_64.rpm from /var/cache/urpmi/rpms                                                            
Preparing...                     #########################################################################################################
      1/1: apache-mod_nss        #########################################################################################################
----------------------------------------------------------------------
More information on package apache-mod_nss-1.0.8-15.2.mga3.x86_64

NOTE: You may need to convert your existing ssl certs
These links provide a good how-to:

http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html
http://www.mozilla.org/projects/security/pki/nss/tools/pk12util.html
http://directory.fedora.redhat.com/wiki/Mod_nss

----------------------------------------------------------------------
[root@vbox ~]# urpme apache-mod_nss
removing apache-mod_nss-1.0.8-15.2.mga3.x86_64
removing package apache-mod_nss-1.0.8-15.2.mga3.x86_64
      1/1: removing apache-mod_nss-1.0.8-15.2.mga3.x86_64
   

I wonder what the difference is?

Thomas
Comment 13 Thomas Spuhler 2013-11-18 15:22:58 CET
Did you have some time to look at this?
Comment 14 Thomas Spuhler 2013-11-18 15:25:59 CET
assigning back to QA

Assignee: thomas => qa-bugs

Comment 15 claire robinson 2013-11-18 15:43:51 CET
Sorry Thomas, there is an issue with this package which needs to be corrected before assigning back to QA for tests. Its the same on i586.

# urpmi apache-mod_nss

installing apache-mod_nss-1.0.8-15.2.mga3.i586.rpm from /var/cache/urpmi/rpms
Preparing...                     ###############################################
      1/1: apache-mod_nss        ###############################################

apache-mod_nss certificate database generated.

Failed to issue method call: No such file or directory
----------------------------------------------------------------------
More information on package apache-mod_nss-1.0.8-15.2.mga3.i586

NOTE: You may need to convert your existing ssl certs
These links provide a good how-to:

http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html
http://www.mozilla.org/projects/security/pki/nss/tools/pk12util.html
http://directory.fedora.redhat.com/wiki/Mod_nss

----------------------------------------------------------------------

# urpme apache-mod_nss
removing apache-mod_nss-1.0.8-15.2.mga3.i586
Failed to issue method call: Unit httpd-prefork.service not loaded.
Failed to issue method call: No such file or directory
removing package apache-mod_nss-1.0.8-15.2.mga3.i586
      1/1: removing apache-mod_nss-1.0.8-15.2.mga3.i586
                                 ###############################################
writing /var/lib/rpm/installed-through-deps.list

Assignee: qa-bugs => thomas

Comment 16 claire robinson 2013-11-18 16:09:45 CET
It could be an external issue not related to this package but I can't verify that.
The httpd service *IS* actually restarted.


The journal shows lines like this..

dbus[1146]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
dbus-daemon[1146]: dbus[1146]: [system] Successfully activated service 'org.freedesktop.PackageKit'
dbus[1146]: [system] Successfully activated service 'org.freedesktop.PackageKit'

.. which may be the cause of the problem.


Please make some further checks and if it is due to an external issue then we'll go ahead with this.
Comment 17 claire robinson 2013-11-18 16:12:08 CET
Adding David to CC in case he has any ideas about this.

CC: (none) => luigiwalser

Comment 18 Thomas Spuhler 2013-11-19 00:17:27 CET
actually, you shouldn't be able to install it after upgrading the NSS.
I just rebuilt it to take care of the NSS upgrade.
Comment 19 David Walser 2013-11-19 00:57:23 CET
(In reply to Thomas Spuhler from comment #18)
> actually, you shouldn't be able to install it after upgrading the NSS.
> I just rebuilt it to take care of the NSS upgrade.

I don't see much point to even having this package unless it's fixed so that's not necessary.
Comment 20 Thomas Spuhler 2013-11-19 18:04:48 CET
I think the person who updated nss should have updated this package as well? :)
Comment 21 David Walser 2013-11-19 18:40:49 CET
No, this package *should not* need to be updated when nss is updated, there's absolutely no reason for that.  nss updates do not break the ABI, so if something still needs rebuilt, that's a packaging problem.  The last thing we need is to have to re-test this package as well each time we update nss (which happens with almost every firefox update), especially when it's not strictly necessary.
Comment 22 Thomas Spuhler 2013-11-19 19:01:22 CET
you are right. Upstream doesn't require it either. It was coming over from Mandriva when I imported the package. I will make the change.
(In cauldron too)
Comment 23 David Walser 2013-11-19 19:26:52 CET
I can't reproduce the errors Claire is getting, and it looks to me like that could have been an issue that sometimes happened with the httpd service files in Mageia 2 that may have carried over into her installation when she upgraded it.
Comment 24 Thomas Spuhler 2013-11-21 00:16:29 CET
The package is now ready to test. (nss dep has been removed)
reassigned to qa-bugs@ml.mageia.org

Advisory:
=========
I have updated apache-mod_nss-1.0.8-15 to rel 15.3

Updated packages are in core/updates_testing:
========================
apache-mod_nss-1.0.8-15.3
same src package

I have updated this package on my own e-mail server.
I have been using it during my last trip by checking e-mail from hotels using  the kolab mailserver through Roundcubemail.
In order to test it this way, one needs to change the following line in 
/etc/roundcubemail/main.inc.php

$rcmail_config['force_https'] = false;

to  

$rcmail_config['force_https'] = 8443;

(to make roundcubemail using https instead of http)

Assignee: thomas => qa-bugs

Comment 25 Thomas Spuhler 2013-11-27 18:10:48 CET
Can we please push this?
Comment 26 David Walser 2013-11-27 18:23:36 CET
(In reply to Thomas Spuhler from comment #25)
> Can we please push this?

Once it's tested.  QA has been buried under a heap of updates because of the extended time that testing beta 1 took.  They cleared the Mageia 2 updates last week but there are still a bunch for Mageia 3.  If you want to help test packages to speed up the process, the current ones are here:
http://mageia.madb.org/tools/updates
Comment 27 Dave Hodgins 2013-11-30 14:35:15 CET
Advisory 11364.adv committed to svn.

CC: (none) => davidwhodgins
Whiteboard: has_procedure => has_procedure advisory

Comment 28 Dave Hodgins 2013-11-30 19:47:08 CET
Testing complete on Mageia 3 i586 and x86_64. Validating the update.

Someone from the sysadmin team, please push 11364.adv to updates.

Keywords: (none) => validated_update
Whiteboard: has_procedure advisory => has_procedure advisory MGA3-64-OK MGA3-32-OK
CC: (none) => sysadmin-bugs

Comment 29 Thomas Backlund 2013-11-30 23:02:38 CET
Update pushed:
http://advisories.mageia.org/MGAA-2013-0126.html

Status: ASSIGNED => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.