Tomcat标准输出日志中充满了证书记录。

huangapple go评论89阅读模式
英文:

Tomcat stout logging filled with certificate records

问题

我的Tomcat stout日志文件似乎充斥着数百万行与证书、算法签名等相关的内容。基本上,我的日志文件有8GB大小,其中99%看起来类似于:

添加为受信任的证书:
  主题:CN=这里的某些CN,O=这里的某些O公司,C=这里的某些C
  颁发者:CN=这里的某些CN,O=这里的某些O公司,C=这里的某些C
  算法:RSA;序列号:0xcf08o5c34256a5bt427bf0eb6903054d0
  有效期从2008年11月07日14:31:18 EST至2039年12月31日14:40:55 EST

或类似的与算法签名相关的日志。

我似乎找不到任何可能导致这种情况的日志设置。我在考虑可能是由于错误配置的trustStore设置或可能某些调试日志处于启用状态。

我应该在哪里查找以关闭这些类型的日志?

谢谢。

英文:

My Tomcat stout log file seems to fill up with millions of lines related to certificates, algorithm signatures etc. Basically my log file is 8gb and 99% of it looks similar to:

adding as trusted cert:
  Subject: CN=SomeCNHere CA, O=SomeOHere Corporation, C=SomeCHere
  Issuer:  CN=SomeCNHere CA, O=SomeOHere Corporation, C=SomeCHere
  Algorithm: RSA; Serial number: 0xcf08o5c34256a5bt427bf0eb6903054d0
  Valid from Tue Nov 07 14:31:18 EST 2008 until Mon Dec 31 14:40:55 EST 2039

OR similar related logs regarding the algorithm signatures.

I cant seem to find any log settings that would cause this. I'm thinking maybe it is due to mis-configured trustStore settings or possibly some debug logs are on somewhere.

Where should I look to shut these types of logs off?

Thank you.

答案1

得分: 1

"Educated guess. You don't have a truststore set up, so you're getting logs over and over again every time a certificate is presented.

Try following the suggestions in https://stackoverflow.com/questions/21833732/configure-truststore-in-tomcat to set up a truststore and see if your logs get cleaned up."

英文:

Educated guess. You don't have a truststore set up, so you're getting logs over and over again every time a certificate is presented.

Try following the suggestions in https://stackoverflow.com/questions/21833732/configure-truststore-in-tomcat to set up a truststore and see if your logs get cleaned up.

huangapple
  • 本文由 发表于 2023年6月29日 02:06:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/76575698.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定