# Enable SSL without specifying cert locations?

**URL:** <https://discourse.openondemand.org/t/enable-ssl-without-specifying-cert-locations/2417>\
**Category:** Get Help\
**Created:** [December 28, 2022, 3:49pm UTC](https://discourse.openondemand.org/t/enable-ssl-without-specifying-cert-locations/2417 "2022-12-28T15:49:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![griznog](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/griznog/32/39_2.png) [@griznog](https://discourse.openondemand.org/u/griznog)\
**Post date:** [December 28, 2022, 3:49pm UTC](https://discourse.openondemand.org/t/enable-ssl-without-specifying-cert-locations/2417/1 "2022-12-28T15:49:56Z")

</div>

Hi,

Is there any way to enable SSL without specifying the paths to the cert files? I am using Apache `mod_md` to manage Let’s Encrypt certs, which handles all the SSL foo outside of the VirtualHost blocks. I need to have an ondemand virtualhost config generated that redirects http to https and then lets `mod_md` manage the certs. I’m not seeing any obvious thing to put in the `ssl:` section of `ood_portal.yml` that will do this.

Thanks,

griznog

---

<div class="post-metadata">

**Author:** ![griznog](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/griznog/32/39_2.png) [@griznog](https://discourse.openondemand.org/u/griznog)\
**Post date:** [December 28, 2022, 3:55pm UTC](https://discourse.openondemand.org/t/enable-ssl-without-specifying-cert-locations/2417/2 "2022-12-28T15:55:32Z")

</div>

I should have tried more guesses, turns out I can put in dummy entries as comments in that section and it does the right thing.

```auto
ssl:
  - '# SSLCertificateFile "/nothing/to/see/here.pem'
  - '# SSLCertificateKeyFile "/nothing/to/see/herekey.pem"'

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [June 26, 2023, 3:55pm UTC](https://discourse.openondemand.org/t/enable-ssl-without-specifying-cert-locations/2417/3 "2023-06-26T15:55:58Z")

</div>

Closed on June 26, 2023, 3:55pm UTC

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