本文介绍了如何为OnlyOffice正确设置HTTPS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

遵循仅Office帮助中心的说明导致创建由浏览器声明为无效的安全证书,因为它是自签名的.

Following OnlyOffice's help center's instructions leads to the creation of security certificate declared as invalid by browsers, as it is self-signed.

目的是在Docker上将OnlyOffice的服务器用于NextCloud,该服务器已在另一台服务器上正常运行.

The intention is to use OnlyOffice's server on Docker for NextCloud, which runs properly already on another server.

当前,证书已在说明建议的目录中创建:

Currently, the certificates have been created in the directory suggested by the instructions:

/app/onlyoffice/DocumentServer/data/certs# ls
dhparam.pem  onlyoffice.crt  onlyoffice.csr  onlyoffice.key

我已按照所有给定的步骤进行操作,但它不起作用.

I have followed all the given steps, and it does not work.

是否可以使用LetsEncrypt代替自签名证书?

Is there a way to use LetsEncrypt instead of self-signed certificates?

我不是IT管理人员,我是一个尝试使用OSS而不使用Google Docs等的简单开发人员.在提供指导时要考虑到这一点,因为您可能会认为这是理所当然的事情.

I am not an IT management person, I am a simple developer trying to use OSS to not use Google Docs etc. Take this into consideration when providing guidance, as what you may take for granted, I may not.

推荐答案

您遇到的问题是,任何人(任何人)都不信任自签名证书.

The problem that you are having is that a self-signed certificate is not trusted by anyone (anything).

您可以使用加密"来创建自己的证书.您将需要在服务器上创建一个特殊文件,或者在域的DNS服务器上创建TXT记录.

You can create your own certificate using Let's Encrypt. You will either need to create a special file on your server or create a TXT record on your domain's DNS server.

Certbot下载

以下内容适用于Linux.如果您在Windows上运行,请尝试使用ManuaLE(以下更多信息)

The following is for Linux. If you are running on Windows, try using ManuaLE (more info below)

转到让我们加密并下载certbot.然后从命令行:

Go to let's encrypt and download certbot. Then from the command line:

certbot certonly --manual --preferred-challenges dns -d mydomain.com

此命令将提示您在DNS服务器上创建TXT记录.创建记录后,请等待几分钟,然后按ENTER键继续.

This command will prompt you to create a TXT record on your DNS server. After creating the record wait a few minutes before pressing ENTER to continue.

创建SSL证书后,将其复制并重命名为问题中列出的所需位置.

After your SSL certificate is created, copy and rename them to your desired location listed in your question.

用于Windows的ManuaLE的说明.

手册下载

manuale authorize mydomain.com
manuale issue mydomain.com

创建SSL证书后,将其复制并重命名为问题中列出的所需位置.

After your SSL certificate is created, copy and rename them to your desired location listed in your question.

这篇关于如何为OnlyOffice正确设置HTTPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 06:56