# Apache Certificate not installed

**URL:** https://community.letsencrypt.org/t/apache-certificate-not-installed/62007
**Category:** Help
**Created:** [May 16, 2018, 11:10am UTC](https://community.letsencrypt.org/t/apache-certificate-not-installed/62007 "2018-05-16T11:10:59Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![srajkumar1986](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/srajkumar1986/32/21950_2.png) [@srajkumar1986](https://community.letsencrypt.org/u/srajkumar1986)
#### Post date: [May 16, 2018, 11:10am UTC](https://community.letsencrypt.org/t/apache-certificate-not-installed/62007/1 "2018-05-16T11:10:59Z")

</div>

Hello,

I am able to generate SSL certificate by using "**certbot-auto certonly --apache -d ‘[www.mytestdomain.com](http://www.mytestdomain.com)’**" command, and after that, it wont configured in my httpd.conf file which i have virtual host configuration on the file.

Can you help on this.

Thanks in advance  
Rajkumar S

---

<div class="post-metadata">

### Author: ![danb35](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/danb35/32/70869_2.png) [@danb35](https://community.letsencrypt.org/u/danb35)
#### Post date: [May 16, 2018, 11:53am UTC](https://community.letsencrypt.org/t/apache-certificate-not-installed/62007/2 "2018-05-16T11:53:11Z")

</div>

> [@srajkumar1986](#):
>
> after that, it wont configured in my httpd.conf file which i have virtual host configuration on the file.

That's correct; using the `certonly` command told it to not install the cert, but only to generate it.

> [@srajkumar1986](#):
>
> Can you help on this.

Edit your apache config file(s) to point to the cert you just created.

---

<div class="post-metadata">

### Author: ![srajkumar1986](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/srajkumar1986/32/21950_2.png) [@srajkumar1986](https://community.letsencrypt.org/u/srajkumar1986)
#### Post date: [May 16, 2018, 12:16pm UTC](https://community.letsencrypt.org/t/apache-certificate-not-installed/62007/3 "2018-05-16T12:16:55Z")

</div>

Thank you @danb35,

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.

Thanks in advance  
Rajkumar S

---

<div class="post-metadata">

### Author: ![stevenzhu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/stevenzhu/32/18864_2.png) [@stevenzhu](https://community.letsencrypt.org/u/stevenzhu)
#### Post date: [May 17, 2018, 1:20pm UTC](https://community.letsencrypt.org/t/apache-certificate-not-installed/62007/4 "2018-05-17T13:20:39Z")

</div>

> [@srajkumar1986](#):
>
> is there any possible to make this permanent as i am working on the full automation process of creating and renewing process.

You only need to set this redirect once. (Renew will not present this dialog, just simply renew)

However, if you want to enable https by default (Enable without visitors viewing your website), go for hsts & preload.

Thank you

---

<div class="post-metadata">

### Author: ![schoen](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/schoen/32/79_2.png) [@schoen](https://community.letsencrypt.org/u/schoen)
#### Post date: [May 17, 2018, 6:36pm UTC](https://community.letsencrypt.org/t/apache-certificate-not-installed/62007/5 "2018-05-17T18:36:33Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![srajkumar1986](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/srajkumar1986/32/21950_2.png) [@srajkumar1986](https://community.letsencrypt.org/u/srajkumar1986)
#### Post date: [May 18, 2018, 4:19am UTC](https://community.letsencrypt.org/t/apache-certificate-not-installed/62007/6 "2018-05-18T04:19:53Z")

</div>

@schoen @stevenzhu

Thank you of both.

Sure i will check with the --redirect command automate this part. For renewal i will work for another script.

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)
#### Post date: [June 17, 2018, 4:28am UTC](https://community.letsencrypt.org/t/apache-certificate-not-installed/62007/7 "2018-06-17T04:28:56Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
