fix for file save path on generation of certificate