cipher should only be set to PSK if JPAKE is used.