[FIX] Default security method is now automatically set, based on the availability of keys.

[#584 state: fixed]