I am able to generate SSL certificate by using "certbot-auto certonly --apache -d ‘www.mytestdomain.com’ " command, and after that, it wont configured in my httpd.conf file which i have virtual host configuration on the file.
After removing the “certonly” command , the certbot auto command installed my certificates automatically to httpd conf.
I have one more doubt on this. Now Lets encrypt asked me that Redirect to HTTPS. is there any possible to make this permanent as i am working on the full automation process of creating and renewing process.
If you do want to set the redirect without being prompted, the command line option to Certbot is --redirect. As @stevenzhu explained, it would only have an effect when you first obtain the certificate, not for subsequent renewals, but maybe you’re looking to automate this part too.