# How to regenerate SSL certificate

**URL:** <https://openvidu.discourse.group/t/how-to-regenerate-ssl-certificate/1538>\
**Category:** Issues with deployment\
**Tags:** v2\
**Created:** [July 20, 2020, 10:29am UTC](https://openvidu.discourse.group/t/how-to-regenerate-ssl-certificate/1538 "2020-07-20T10:29:15Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![vipin\_mishra](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/vipin_mishra/32/32_2.png) [@vipin\_mishra](https://openvidu.discourse.group/u/vipin_mishra)\
**Post date:** [January 22, 2021, 3:17pm UTC](https://openvidu.discourse.group/t/how-to-regenerate-ssl-certificate/1538/21 "2021-01-22T15:17:54Z")

</div>

Yes i know there are lots previously problems reported on ssl  
You’re doings great But if any help needed just tell me , i will love to help

One thing i want to inform openvidu team that it’s vertical scalibility and recoding scalibility problem killings openvidu customer as i per my knowledge in openvidu pro or any openvidu CE  
Second at least make openvidu CE version also scalable

Its just suggestions got by many clients  
Rest is awesome  
Thanks  
Regards  
Vipin

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [January 22, 2021, 4:46pm UTC](https://openvidu.discourse.group/t/how-to-regenerate-ssl-certificate/1538/22 "2021-01-22T16:46:50Z")

</div>

Thank you for suggestions @vipin_mishra.

COMPOSED recording will be finally scalable in OpenVidu PRO 2.17 version (to be released in 2 weeks) because it will be moved to media nodes (currently is being performed in master node).

OpenVidu CE is already scalable, but just with vertical scalability.

Best regards

---

<div class="post-metadata">

**Author:** ![CraosCZ](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@CraosCZ](https://openvidu.discourse.group/u/CraosCZ)\
**Post date:** [November 29, 2022, 11:34am UTC](https://openvidu.discourse.group/t/how-to-regenerate-ssl-certificate/1538/23 "2022-11-29T11:34:50Z")

</div>

I followed this approach as my certificate is not renewd as well. Unfortunatelly, the server it not accessible after it. Any idea why it is not working now? I am attaching the screenshot.

```
docker exec -it openvidu_nginx_1 crontab -l

```

outputs

```
0 */12 * * * certbot renew --post-hook "nginx -s reload" >> /var/log/cron-letsencrypt.log

```

And this command

```
docker exec -it openvidu_nginx_1 certbot renew --post-hook "nginx -s reload"

```

outputs

```
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
No renewals were attempted.
No hooks were run.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

```

 ![ov](https://global.discourse-cdn.com/free1/uploads/openvidu/original/2X/e/eddbbd4f4a22c692702f6189d3999e324083f0c2.jpeg)

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [December 5, 2022, 8:00pm UTC](https://openvidu.discourse.group/t/how-to-regenerate-ssl-certificate/1538/24 "2022-12-05T20:00:17Z")

</div>

This was fixed 2 years ago. What version are you using?

We have multiple environments setup, and autorenews of letsencrypt certificates are working.

---

<div class="post-metadata">

**Author:** ![CraosCZ](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@CraosCZ](https://openvidu.discourse.group/u/CraosCZ)\
**Post date:** [December 9, 2022, 4:31pm UTC](https://openvidu.discourse.group/t/how-to-regenerate-ssl-certificate/1538/25 "2022-12-09T16:31:23Z")

</div>

I am on 2.22. It is new installation, so I do believe it is the most recent - I used this command:

curl [https://s3-eu-west-1.amazonaws.com/aws.openvidu.io/install\_openvidu\_latest.sh](https://s3-eu-west-1.amazonaws.com/aws.openvidu.io/install_openvidu_latest.sh)

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [December 20, 2022, 10:43am UTC](https://openvidu.discourse.group/t/how-to-regenerate-ssl-certificate/1538/26 "2022-12-20T10:43:26Z")

</div>

What directory did you used to install OpenVidu?

I would recommend you to reinstall OpenVidu CE.

You just need to follow these steps:

[Curent latest at Dec. 2.24.0](https://docs.openvidu.io/en/2.24.0/deployment/ce/on-premises/#2-deployment)  
[2.22.0](https://docs.openvidu.io/en/2.24.0/deployment/ce/on-premises/#2-deployment)

Make sure that the installation is done in `/opt/openvidu` and to define at least these environment variables:

- **`DOMAIN_OR_PUBLIC_IP=<AFullyQualifiedDomainName>`**
- **`OPENVIDU_SECRET=whatever`**
- **`CERTIFICATE_TYPE=letsencrypt`**
- **`LETSENCRYPT_EMAIL=<avalidemail@mail.com>`**

Also, make sure that ports 80 TCP, 443 TCP, 3478 TCP/UDP and 40000-65535 TCP/UDP are open for outside connections, and that your machine has an internet connection.

Specifically, for letsencrypt to work, you need port 80 and 443 open.

If you have any error, check the nginx logs, just in case letsencrypt for any reason blocked the domain after multiple tries. In case of this error, you may need to create assign a new domain name.

[Previous page](https://openvidu.discourse.group/t/how-to-regenerate-ssl-certificate/1538.md?page=1)
