简体   繁体   English

如何删除或编辑 Digital Ocean OpenLiteSpeed 服务器上的 SSL 证书

[英]How to Remove or Edit an SSL Certificate on a Digital Ocean OpenLiteSpeed Server

There is a LetsEncrypt SSL cert on a Digital Ocean OpenLiteSpeed sever I'm managing, which has the wrong name.我正在管理的 Digital Ocean OpenLiteSpeed 服务器上有一个 LetsEncrypt SSL 证书,它的名称错误。 Does anyone know if there is a way I can either remove the cert and make a new one or edit it?有谁知道是否有办法删除证书并制作新证书或编辑它? If I add a second cert with the correct information, does anyone know how that would play out?如果我添加带有正确信息的第二个证书,有谁知道结果会如何? Thank you in advance for any help you can offer.预先感谢您提供的任何帮助。

first of all, if you are applying the wrong domain or subdomain and you want to correct it so no need to correct it.首先,如果您应用了错误的域或子域,并且想要更正它,则无需更正。 change your SSL by using these steps : Open DigitalOcean Console :使用以下步骤更改您的 SSL:打开 DigitalOcean 控制台

Step1: login with your username and password. Step1:使用您的用户名和密码登录。

Step2 : use this command sudo add-apt-repository ppa:certbot/certbot步骤 2 :使用此命令sudo add-apt-repository ppa:certbot/certbot

Step 3: command sudo apt-get update第 3 步:命令sudo apt-get update

Step 4 : sudo apt-get install python-certbot-apache第 4 步sudo apt-get install python-certbot-apache

Now The certbot Let's Encrypt client is now ready to use.现在 certbot Let's Encrypt 客户端现在可以使用了。

Set Up the SSL Certificate设置 SSL 证书

Step 5: sudo certbot --apache -d example.com <<<<use your own domain or subdomain instead of example.com第 5 步: sudo certbot --apache -d example.com <<<< 使用您自己的域或子域而不是 example.com

Verifying Certbot Auto-Renewal验证 Certbot 自动续订

sudo certbot renew --dry-run

If you want to delete SSL CERTBOT from your site use these commands:如果要从站点中删除 SSL CERTBOT,请使用以下命令:

Command to Delete Certbot Certificate删除 Certbot 证书的命令

$ sudo certbot delete

Delete Certbot Certificate by Domain Name按域名删除 Certbot 证书

$ sudo certbot delete --cert-name example.com

for removing ssl in digital ocean you can use要在数字海洋中删除 ssl,您可以使用

$ sudo certbot delete

there is no way to edit ssl becasue SSL is an encrypted format system.you can delete ssl from ssl or make a new ssl for your domain无法编辑 ssl,因为 SSL 是一种加密格式系统。您可以从 ssl 中删除 ssl 或为您的域创建一个新的 ssl

I guess you are asking about how to update the new LE cert on OpenLiteSpeed.我猜您是在询问如何在 OpenLiteSpeed 上更新新的 LE 证书。

Basically you can follow this official doc to apply the cert and update the correct certificate & key path to the listener>SSL via web admin at port 7080.基本上,您可以按照此 官方文档应用证书,并通过端口 7080 的 Web 管理员将正确的证书和密钥路径更新到侦听器> SSL。

Best最好的事物

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM