Added a check to prevent that password protected ssl keys get saved. Thanks to Timo for finding the issue.