Added method to save rsa key pair to client-side