Unable to create privkey.pem and fullchain.pem with cerbot on localhost

Having an issue with tls parameters, i finally found out how to create it using cerbot, but when am trying with localhost it’s not working, am getting :

An unexpected error occurred:
The server will not issue certificates for the identifier :: Error creating new order :: Cannot issue for "localhost": Domain name needs at least one dot

How can i run it locally then ?

A little help please !

I’m afraid this is not a forum about how to create certificates. There are other tools to create localhost certs. Please do your homeworks at Google.