Can i recover cert folder in elastic search?

By mistake i deleted the cert folder present in config folder of Elasticsearch is there any command so i can recover below certificates:-

transport.p12
http.p12

Not unless you had a backup somewhere.

can i recover dashboard that i made kibana, if i reinstall Elasticsearch

If you haven't delete the data directories you might be able to.

data directories of kibana? because if i re install Elasticsearch all folders are replaced

The Elasticsearch ones. What OS are you on?

Linux