Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th June 2009, 01:31 AM
tfar-4 Offline
Registered User
 
Join Date: Jun 2009
Posts: 5
Fedora 11 Openswan IPSEC VPN - How to disable NSS and FIPS now enabled by default??

Openswan 2.6.21-4 in Fedora 11 has NSS crypto library enabled by default. This breaks the existing certificate and key configuration after an upgrade from Fedora 10.

Does anyone know how to either disable NSS for Openswan by a configuration change without having to recompile Openswan or alternatively how to import existing certs and keys into NSS so that a current Openswan road warrior configuration can continue to be used?

I ask this question here rather than the Openswan Forum because Openswan use of NSS is very sparsely documented and does not appear to be an active topic in the Openswan lists. It looks like Fedora developers have taken this decision before the Openswan team have given NSS and FIPS much consideration at all. There is no mention of the change in the Release Notes for Fedora 11. I would not have upgraded if I had known this change to Openswan in Fedora 11 had been made. But there must be many more users like me for whom Openswan is a critical app so maybe we need to find a solution to enable Fedora 11 to remain compatible with existing networks.

Tony
Reply With Quote
  #2  
Old 20th June 2009, 04:56 PM
pwouters Offline
Registered User
 
Join Date: Jun 2009
Posts: 1
Unfortunately, it is a compile-time option only

You will have to recompile openswan. The easiest is to do:

yum install yum-utils
yumdownloader --source openswan
rpm -ihv openswan-*.src.rpm

edit openswan.spec and find the bit where it says

USE_LIBNSS="true" \
USE_FIPSCHECK="true" \

and set those to false, then recompile using rpmbuild -bb openswan.spec

We added a %{buildnss} option that can be used to disable/enable it using
rpmbuild --define 'buildnss=0' but I am not sure if that made it into redhat's spec file.
Reply With Quote
  #3  
Old 20th June 2009, 11:41 PM
tfar-4 Offline
Registered User
 
Join Date: Jun 2009
Posts: 5
Spec file does not include USE_LIBNSS

Thanks Paul, I should have known it would be you who would respond. The spec file does not define LIB_NSS only FIPSCHECK. So I have set USE_FIPSCHECK to 0 and rebuilt the RPM packages. I am not familiar enough with building rpms to know whether it is only a matter of also commenting the nss patch to effectively disable nss as well. I will test the rpm file variations I come up with on a non production critical laptop later in the day when I have more time available.

In the meantime I have reinstalled the F10 rpm for Openswan on my production workstation using the --oldpackage option and Openswan is working well again. That is not a suitable long term solution of course but keeps me going in the meantime.

Tony
Reply With Quote
  #4  
Old 22nd June 2009, 10:31 AM
tfar-4 Offline
Registered User
 
Join Date: Jun 2009
Posts: 5
Compiling without FIPS and NSS solves problem

Rebuilding the F11 Openswan RPM with USE_FIPSCHECK=0 and with the nss.patch commented out in the spec file does restore Openswan to using the existing certs and keys without NSS support. I guess I its time to start reading up on Network Security Services if it's the way of the future.
Reply With Quote
  #5  
Old 6th November 2009, 02:57 AM
jschilen Offline
Registered User
 
Join Date: Aug 2009
Posts: 2
linuxsafari
I haven't gotten too far with it yet but I was just able to create the NSS db with:
certutil -N -d /etc/ipsec.d
Then import my pfx file to it with
pk12util -i myfile.pfx -d /etc/ipsec.d

Now on to try to make it work with our vpn...
Reply With Quote
  #6  
Old 6th November 2009, 02:57 AM
jschilen Offline
Registered User
 
Join Date: Aug 2009
Posts: 2
linuxsafari
I haven't gotten too far with it yet but I was just able to create the NSS db with:
certutil -N -d /etc/ipsec.d
Then import my pfx file to it with
pk12util -i myfile.pfx -d /etc/ipsec.d

Now on to try to make it work with our vpn...
Reply With Quote
Reply

Tags
default, disable, enabled, fedora, fips, ipsec, nss, openswan, vpn

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ipsec verify of openswan arrowheart Security and Privacy 0 21st June 2007 12:07 AM
Openswan Ipsec massimomm Servers & Networking 1 25th November 2005 11:27 PM
FC4 + Openswan ipsec problem nikita99 Security and Privacy 1 20th July 2005 02:46 PM
[Q] IPSec OpenSwan (Fedora Core3) to FreeSwan device TheEdge Security and Privacy 3 5th July 2005 10:51 PM


Current GMT-time: 09:09 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat