Error creating Certificate : address ::1 exists, but this virtual server does not have IPv6 enabled

In Virtualmin -> Manage Virtual Server -> Change IP address, set IPv6 address to none and then apply again for a SSL certificate. Should work this time.