[strongSwan] XAuth with interactive authentication?
martin at strongswan.org
Tue Sep 23 13:22:15 CEST 2014
> Is it possible to create plugin of my own to request
Yes. The daemon queries the registered credential_set_t  instances
for credentials; in such an implementation you can request the password
from the user. There is a simple callback based wrapper  to query
passwords with a callback function. It is used, for example, by
charon-cmd to query passwords on the console .
> Main obstacle I see here is how IKE daemon will behave itself in case
> of long plugin callback execution time as user can be quite slow in
This is usually not a problem. The executing thread will block, but all
others work as usual. For XAuth you might see password request
retransmits for the server, but the daemon handles all that for you.
> Another question I want ask: Is there anything like "ipsec stroke
> user-creds" to setup password for private key decryption during public
> key auth?
You can set the decryption password to "%prompt" in ipsec.secrets, and
then use "ipsec secrets" to enter it on the console. The key is
decrypted, but kept unencrypted in memory for further use.
If that is not acceptable, you may return a private_key_t instance from
a custom credential_set_t, which wraps all the decryption logic.
More information about the Users