Manually generate prosody cert throw "The given hostname does not exist in the config"

I am using this doc:

when execute this step:
prosodyctl cert generate jitsi.example.com
prosodyctl cert generate auth.jitsi.example.com

it return below error:
The given hostname does not exist in the config

is there any missing steps ?

check in prosody.cfg.lua file if your config file is included or not…if not then include it at the end of the file like this,

Include "conf.d/*.cfg.lua"

then restart prosody and try again…

thanks. I have fixed it