无法编码Mac中的Apache模块

发布于 2025-02-11 06:34:39 字数 1365 浏览 0 评论 0原文

时会遇到以下错误

root# sudo apachectl configtest
[Tue Jun 28 13:31:53.686521 2022] [so:error] [pid 8913] AH06665: No code signing authority for module at /private/libexec/apache2/mod_dispatcher.so specified in LoadModule directive.
httpd: Syntax error on line 191 of /private/etc/apache2/httpd.conf: Code signing absent - not loading module at: /private/libexec/apache2/mod_dispatcher.so

我在启动Apache解决上述问题 ,我在Mac Machine中创建了证书授权,然后以下 - https://www.simplified.guide/macos/macos/keychain-ca-ca-ca-ca-ca-code-signing-create-create-create-a>,并试图签名以签署AEM Dispatcher模块使用以下命令

codesign --sign "XXX CA" --force --keychain ~/Library/Keychains/login.keychain-db /private/libexec/apache2/mod_dispatcher.so

,但我会收到以下错误在钥匙扣中找不到指定的项目。

ref- https://www.codexpedia.com/apache-server/no-code-server/no-code-signing-signing-signing-authority-for-for-for-for-for-for--author-for-for--author-for-- Module-php-on-mac-monterey/

有人可以告诉我上述命令中是否有任何问题?

我的MacOS版本是12.2(蒙特雷)

I get the below error while starting Apache

root# sudo apachectl configtest
[Tue Jun 28 13:31:53.686521 2022] [so:error] [pid 8913] AH06665: No code signing authority for module at /private/libexec/apache2/mod_dispatcher.so specified in LoadModule directive.
httpd: Syntax error on line 191 of /private/etc/apache2/httpd.conf: Code signing absent - not loading module at: /private/libexec/apache2/mod_dispatcher.so

To fix the above problem, I created Certificate Authority in mac machine by following - https://www.simplified.guide/macos/keychain-ca-code-signing-create and trying to codesign to sign the AEM Dispatcher module with below command

codesign --sign "XXX CA" --force --keychain ~/Library/Keychains/login.keychain-db /private/libexec/apache2/mod_dispatcher.so

But I get the following error The specified item could not be found in the keychain.

Ref - https://www.codexpedia.com/apache-server/no-code-signing-authority-for-module-php-on-mac-monterey/

Can anyone tell me if there is any problem in above command ?

My macOS version is 12.2 (Monterey)

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文