IPv6 SSL certificate for ports other than 80/443

If you already have a certificate for that specific hostname somewhere, can't you simply make some kind of volume in the Docker container where you want to use that certificate?