[strongSwan] ipsec.secrets file coded in unknown format, discarded

Damien Benoist dams.benoist at gmail.com
Mon Jul 22 15:02:27 CEST 2013


Hi,

I have an ipsec.secrets which is read with no error on a system,
and fails on an another one.
The file looks like:

# /etc/ipsec.secrets - strongSwan IPsec secrets file

#: RSA myKey.der
<id> : <file>.pem <password>

On both systems strongswan is compiled with the same options:
--disable-constraints
--enable-unity

Thanks for your help.


1) Working system:

# From /var/log/syslog:
charon: 00[CFG] loading secrets from '.../ipsec.secrets'
charon: 00[CFG]   loaded RSA private key from ...

# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.0 (wheezy)
Release:        7.0
Codename:       wheezy
# uname -srvmo
Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2+deb7u2 x86_64 GNU/Linux
# ipsec --version
Linux strongSwan U5.0.4/K3.2.0-4-amd64


2) Failing system

# From /var/log/syslog:
charon: 00[CFG] loading secrets from '../ipsec.secrets'
charon: 00[LIB]   file coded in unknown format, discarded

# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.1 (n/a)
Release:        7.1
Codename:       n/a
# uname -srvmo
Linux 3.6.11+ #474 PREEMPT Thu Jun 13 17:14:42 BST 2013 armv6l GNU/Linux
# ipsec --version
Linux strongSwan U5.0.4/K3.6.11+




More information about the Users mailing list