Apr 1 15:04:33 duke charon: 11[LIB] file coded in unknown format, discarded Apr 1 15:04:33 duke charon: 11[LIB] building CRED_CERTIFICATE - TRUSTED_PUBKEY failed, tried 3 builders Apr 1 15:04:33 duke charon: 11[CFG] loading public key for "%any" from '/etc/ssh/hostkey' failed
Loading SSH public keys from files via left|rightsigkey
was not supported by strongSwan before version 5.2.0.
As a workaround you may configure the key as follows:
leftsigkey=ssh:0sAAAAB3NzaC1yc2EA...
Where ssh:0s
is followed by the Base64 encoded SSH public key. Support for this syntax was added with strongSwan 5.1.0.