store private key in file