SSL_Keys refactor