Yoast sitemap https

How to replace http urls with https urls in the sitemap file generated by YOAST ?

You just have to disable XML Sitempas in Yoast SEO > XML Sitemaps.

Empty the WordPress cache if you have a WP Super Cache plugin.

And enable again XML Siremaps in Yoast.