无法编码Mac中的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
我在启动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
,但我会收到以下错误在钥匙扣中找不到指定的项目。
有人可以告诉我上述命令中是否有任何问题?
我的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论