Fixed adding SSL key

Fixes bug that made impossible to add new ssl key.