Saving encrypted PEM files