gpt4 book ai didi

ssl - Epson TM-T88V-i SSL证书问题

转载 作者:太空宇宙 更新时间:2023-11-03 12:52:19 25 4
gpt4 key购买 nike

我有一台 Epson TM-T88V-i 收据打印机,我使用 Epson 的 E-pos Javascript 库打印它。我一直在使用以下 URL 打印到连接到本地网络的打印机

http://192.168.1.105/cgi-bin/epos/service.cgi?devid=local_printer&timeout=60000

这在我的应用程序不安全时运行良好,但我现在已经在我的主域上安装了一个证书以从受信任的 CA 中保护它并且一直面临这样的问题,即当我打印到打印机的安全 URL https://192.168.1.105/cgi-bin/epos/service.cgi?devid=local_printer&timeout=60000 它破坏了我的主域的安全性 - 标记站点不安全并以红色越过 HTTPS 因为它正在加载证书错误的内容。

当我检查打印机生成的自签名证书时,它有以下问题:

Certificate - Subject Alternative Name missing The certificate for this site does not contain a Subject Alternative Name extension containing a domain name or IP address.


Certificate - missing This site is missing a valid, trusted certificate (net::ERR_CERT_AUTHORITY_INVALID).

我已尝试将证书添加到我信任的证书颁发机构,但这没有用。

我已按照 Epson 自己的指南使用 OpenSSL 创建证书,但我在浏览器中遇到了同样的错误。

我用谷歌搜索了上述错误,但找不到有效的解决方案。忽略所有证书错误不是一种选择,因为这适用于实时生产环境。我启用了 Allow invalid certificates for resources loaded from localhost 但这也没有用。

如果我需要购买证书,我会但不知道 CA 是否可以在没有签名请求的情况下颁发证书

任何帮助将不胜感激

最佳答案

这是我按照本指南最终得到的配置。感谢 Mark Farrugia 指出将 altNames 从 DNS.0 更改为 IP.0 - 这似乎是我们的主要症结所在

https://gist.github.com/jchandra74/36d5f8d0e11960dd8f80260801109ab0

#
# epson.cnf
#

[ req ]
prompt = no
distinguished_name = server_distinguished_name
req_extensions = v3_req

[ server_distinguished_name ]
commonName = 192.168.1.105
stateOrProvinceName = mystate
countryName = mycountry
emailAddress = myemail.email.com
organizationName = epson
organizationalUnitName = presales

[ v3_req ]
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectAltName = @alt_names

[ alt_names ]
IP.0 = 192.168.1.105 -- this is the IP of the printer

必须注意。我必须下载证书并将其添加到我其他 PC 上 Chrome 自己的受信任 CA 存储区。添加后它按预期工作

关于ssl - Epson TM-T88V-i SSL证书问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50116786/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com