Cannot validate certificate for 127.0.0.1 because it doesn't contain any IP SANs

I received this error after first run:
Error listing secrets engines: Get “https://127.0.0.1:8200/v1/sys/mounts”: x509: cannot validate certificate for 127.0.0.1 because it doesn’t contain any IP SANs

I cannot run vault command.
What may cause this?

The certificate you have defined in your server configuration on your vault server doesn’t include 127.0.0.1 as one of the valid names in the definition. If you generated the certificate take a look at your crt file to see what names it does have defined.

Hi,
Currently in internship I encounter the same problem. I would like to know if I need to change the address of my listener “tcp” to 127.0.0.1:8200. If I do this it is not likely to crash my config?