scep服务器返回了无效的响应,iOS移动设备管理 - SCEP服务器返回无效响应

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值