I have a working Strongswan IKEv2 VPN, i uses eap-mschapv2 as right auth. It's working fine as long as I use the ipsec.secrets file to store the user credentials.
# ipsec.secrets file
: RSA vpn-server-key.pem
arav %any : EAP "accessit"
But I want to change it to store these secrets in a MySQL database. I've connected the mysql database in the sql.conf file i just want to know how to insert these user credentials in MySQL table.
On refering this guide: https://wiki.strongswan.org/projects/strongswan/wiki/SQLite
It doesn't store the secrets in plain text but it uses any kind of encryption to do so. Can anyone tell me how to do that ?
Any help will be appreciated