I'm using the strongswan documentation right here
I've added to /etc/ipsec.secrets
the following line:
: RSA moonKey.pem "SomePwd"
however i don't know how to create moonKey.pem
. Any ideas?
this is a follow up question to this one: strongSwan ipsec setup, couple of questions
This post on the strongSwan mailing list seems to cover your question.
Gist:
If you just want to generate pre-shared keys and not use certificates, then two examples are provided at Linux Kernel 2.6 using KAME-tools using xxd -- "make a hexdump or do the reverse"