How to obtain SSL certificate in my setup?

I was able to obtain a certificate using the DNS TXT record challenge, so now I have a certificate.
But since that is a manual operation Apache has not been configured to use the certificate.
How do I do that?