我使用以下命令生成了证书:
sudo certbot certonly --standalone -d [website.com] -d [www.website.com]
文件已成功生成,并且我更新了default-ssh.conf文件以使用这些证书。但是当我要访问我的网站时,Google仍然说这是一个不安全的网站。我可以绕过警告来访问,但不能注册服务人员:
Unhandled Promise rejection: Failed to register a ServiceWorker for scope ('https://[website.com]/') with script ('https://[website.com]/service-worker.js'): An SSL certificate error occurred when fetching the script. ; Zone: <root> ; Task: Promise.then ; Value: DOMException: Failed to register a ServiceWorker for scope ('https://[website.com]') with script ('https://[website.com]/service-worker.js'): An SSL certificate error occurred when fetching the script. undefined