【问题标题】:How can I log the SSL layer with the Apache HTTP server classes如何使用 Apache HTTP 服务器类记录 SSL 层
【发布时间】:2013-08-13 16:00:55
【问题描述】:

我有一个自定义应用程序,它使用 httpcomponents-core-4.2.4 和带有 Oracle JDK 的 SSLContext/SSLEngine 来启用 https。

它在 Windows/OSX 环境中运行良好。

但是,它不适用于带有 OpenJDK 的 Ubuntu 12.04。

如何为 HTTP 组件或 SSL 类启用日志记录,因为它们不向 log4j 日志提供任何内容,尽管客户端 httpcomponents 提供。

我发现有一个内部Debug instance in SSLEngineImpl,但是如何启用呢?

【问题讨论】:

  • 什么“Apache HTTP 服务器类”?您似乎实际上是在询问 Oracle, Java, client 类,即JSSE,对我来说。
  • 是的,你是对的。我不确定实际涉及什么,以及每个在这种情况下的作用是什么。因此我提到了 httpcomponents-core 和 SSL-classes。

标签: java http ssl https apache-httpcomponents


【解决方案1】:

好的,找到了。我想我必须写下这个问题才能真正了解它。这样做:

java -Djavax.net.debug=all

完整指南是here

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-30
    • 2014-11-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多