Password and certificate changes

1) Save password base64 encoded
2) Fix accepting custom SSL certificates