Elasticsearch failed start when enable x-pack security

You can't.
Once you've set a password on a PKCS#12 file you have to remember it - there is no way to recover it later.

If you no longer know what password you entered for those files, then you will need to re-generate them.