Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 24859

Summary: ipsec looking for ipsec.secrets in wrong location.
Product: Gentoo Linux Reporter: Wade Mealing <wmealing>
Component: [OLD] ServerAssignee: Jay Pfeifer (RETIRED) <pfeifer>
Status: RESOLVED FIXED    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: http://blog.subverted.net/index.php?m=200307#170
Whiteboard:
Package list:
Runtime testing required: ---

Description Wade Mealing 2003-07-20 02:21:49 UTC
when using ipsec to get host keys, --left or --right, it tries to look in
/etc/ipsec.secrets and not in the correct location of /etc/ipsec/ipsec.secrets

Reproducible: Always
Steps to Reproduce:
1. emerge super-freeswan
2. Generate hostkey (if not already generated ) ipsec newhostkey --hostname
www.subverted.net --output /etc/ipsec/ipsec.secrets --bits 2192
3. ipsec showhostkey --left

Actual Results:  
Got an error in regards to file not existing....

ipsec showhostkey --right
ipsec showhostkey: file `/etc/ipsec.secrets' does not exist

Expected Results:  
Showing the host key.. 

Symlinking fixes the problem, but this shouldn't happen.

ln -s /etc/ipsec/ipsec.secrets /etc/ipsec.secrets
Comment 1 Jay Pfeifer (RETIRED) gentoo-dev 2004-06-24 13:06:22 UTC
superfreeswan is no longer a package in portage. but, i do not see this bug in other *swan. closing.