Could not write to key file!