I am in the process of writing an open source iOS mobile device management module in Java. For this I am referring the Apple provided Ruby code at [1]. I have set this up and it works fine for me. Now I need to convert this code to Java. So far I have accomplished to do that up to PKIOperation. In the PKI operation I get "The SCEP server returned an invalid response" which I believe is due to wrong response I sent to device upon PKIOperation.
我正在用Java编写开源iOS移动设备管理模块。为此,我在[1]中提到Apple提供的Ruby代码。我已经设置了它,它对我来说很好。现在我需要将此代码转换为Java。到目前为止,我已经完成了PKIOperation的工作。在PKI操作中,我得到“SCEP服务器返回无效响应”,我认为这是由于我在PKIOperation时发送给设备的错误响应。
However when I do search on the internet I get this is something to do with the "maxHttpHeaderSize" as I am using the server as Apache Tomcat. Although I increase that since still it does not get resolved.
然而,当我在互联网上搜索时,我得到的是与“maxHttpHeaderSize”有关,因为我将服务器用作Apache Tomcat。虽然我增加了,但仍然没有得到解决。
Here is the code I need to convert - taken from Apple provided Ruby script
这是我需要转换的代码 - 取自Apple提供的Ruby脚本
if query['operation'] == "PKIOperation"
p7sign = OpenSSL::PKCS7::PKCS7.new(req.body)
store = OpenSSL::X509::Store.new
p7sign.verify(nil, store, nil, OpenSSL::PKCS7::NOVERIFY)
signers = p7sign.signers
p7enc = OpenSSL::PK