Domino AppDev Pack 1.0.13,IAM服务器设置失败,无法通过自签名的CA签名证书

发布于 2025-02-06 19:38:46 字数 753 浏览 2 评论 0 原文

我没有本地服务器的CA签名证书:serv.org.com。 因此,我遵循的步骤为IAM服务器创建自签名证书。

openssl genrsa -des3 -out iamserver.key 4096

openssl req -new -key iamserver.key -out iamserver.csr -subj“/o = org/cn = org/cn = iamAccessor

” -ca ca.crt -cakey ca.key -out iamserver.crt -caserial ca.seq

所述的步骤成功。

但是,当我尝试使用错误运行以下步骤时。

“如果您使用自我创建的CA签署证书,则以下示例脚本演示了如何使用它签署服务器证书。”

OpenSSL x509 -passin Pass:passw0rd -req -days 365 -in iamserver.csr -ca ca.crt
-cakey ca.key -out iamserver.crt -cacreateSerial -careRial ca.seq -sha256 -extfile
<(printf“ [san] \ nsubjectaltname = dns:iamserver.com”)-extensions san

我收到了一个错误消息:系统无法找到特定文件。

I don't have the CA signed certificate for local server: serv.org.com.
Therefore, I follow the steps to create the self-signed certificate for IAM server.

openssl genrsa -des3 -out iamserver.key 4096

openssl req -new -key iamserver.key -out iamserver.csr -subj "/O=Org/CN=IAMAccessor" -sha256

openssl x509 -req -days 365 -in iamserver.csr -CA ca.crt -CAkey ca.key -out iamserver.crt -CAserial ca.seq

For the steps above are successful.

However, when I try to run the following steps with error.

"If you are using your self-created CA to sign your certificate, the following sample script demonstrates how to sign a server certificate with it."

openssl x509 -passin pass:passw0rd -req -days 365 -in iamserver.csr -CA ca.crt
-CAkey ca.key -out iamserver.crt -CAcreateserial -CAserial ca.seq -sha256 -extfile
<(printf "[SAN]\nsubjectAltName=DNS:iamserver.com") -extensions SAN

enter image description here

I got an error message: System failed to found the specific files.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

千寻… 2025-02-13 19:38:46

您正在传递“ - in iamserver.csr”,但在您的DIR列表中似乎没有CSR。

You are passing an "-in iamserver.csr" but there does not appear to be a csr for iamserver in your dir listing.

第几種人 2025-02-13 19:38:46

请小心,发布答案,不要尝试编辑它们。

我只是在响应原始帖子中出现的图像。

在第一张图片中,您没有指定通往iamserver.csr的正确路径
该文件位于您的IAMServer目录中,因此看起来像“ -in-iamserver \ iamserver.csr”,

您响应的图片中都在iamServer目录中,但是所有其他CA文件都在上面的目录中。因此,您需要修复通往所有输入的路径,以便它们匹配并指向某些内容。

Please be careful, post responses to answers, don't try to edit them.

I'm just responding to the image that came in the original post.

In the first picture, you did not specify the correct path to iamserver.csr
That file was in your iamserver directory, so it should look like "-in iamserver\iamserver.csr"

In the picture you responded with you were in iamserver directory, but all of your other ca files where in the directory above. So you need to fix the path to all of the inputs so that they match and point to something.

旧人哭 2025-02-13 19:38:46

感谢您的答复。我已经检查了很多次,这不是文件名错误。

我收到了所有必需文件的目录,例如ca.key和ca.crt,iamserver.csr,iamserver.crt。

这是Windows问题,需要创建.cnf文件,例如SSL-Extensions-509.cnf为-extfile,根据所附的教程页面。

在将脚本修改为以下内容后,它现在正常工作。

openssl x509 -passin pass:Ectestjn1234 -req -days 3650 -in iamserver.csr -CA ca.crt -CAkey ca.key -out iamserver.crt -CAcreateserial -CAserial ca.seq -sha256 -extfile ssl-extensions-509.cnf

C:\Certs\iam\iamserver>openssl x509 -passin pass:password -req -days 3650 -in iamserver.csr -CA ca.crt -CAkey ca.key -out iamserver.crt -CAcreateserial -CAserial ca.seq -sha256 -extfile ssl-extensions-509.cnf
Certificate request self-signature ok
subject=C = TW, ST = Taiwan, L = New Taipei City, O = XXX, CN = XXX

Thanks for your replied. I have checked for many times, it is not the file name errors.

I got the directory with all required files such as ca.key and ca.crt, iamserver.csr, iamserver.crt.

It is the windows problem, it is required to create a .cnf file e.g. ssl-extensions-509.cnf as -extfile, according to the tutorial page as attached.
https://www.sit.de/SIT/hvblog.nsf/dx/26.05.2020165717HVOKJX.htm

After modified the scripts to the following, it is working now.

openssl x509 -passin pass:Ectestjn1234 -req -days 3650 -in iamserver.csr -CA ca.crt -CAkey ca.key -out iamserver.crt -CAcreateserial -CAserial ca.seq -sha256 -extfile ssl-extensions-509.cnf

C:\Certs\iam\iamserver>openssl x509 -passin pass:password -req -days 3650 -in iamserver.csr -CA ca.crt -CAkey ca.key -out iamserver.crt -CAcreateserial -CAserial ca.seq -sha256 -extfile ssl-extensions-509.cnf
Certificate request self-signature ok
subject=C = TW, ST = Taiwan, L = New Taipei City, O = XXX, CN = XXX
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文