Bug: S/MIME logging seems not to work in Thunderbird on OS X
Status: UNCONFIRMED
Priority: --
Created: 2022-02-06 14:09:46+00:00
Resolved: 2022-03-15 20:12:13+00:00

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36 Edg/98.0.1108.43

Steps to reproduce:

I want to debug the validation of S/MIME signatures. As per https://wiki.mozilla.org/MailNews:Logging#Other_Useful_NSPR_Logging_Options I have (hopefully) enabled S/MIME logging:

#!/bin/sh
export MOZ_LOG=pipnss:5,timestamp
export MOZ_LOG_FILE=$HOME/pipnss.log
/Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin &

After the start of Thunderbird I'm opening a S/MIME signed message. The validation is being performed and the S/MIME logo appears in the header of the message within Thunderbird.


Actual results:

In the pipnss.log.moz-log file only TLS related messages are logged:

022-02-06 13:56:13.221932 UTC - [Parent 1686: Main Thread]: D/pipnss nsNSSComponent::ctor
2022-02-06 13:56:13.221942 UTC - [Parent 1686: Main Thread]: D/pipnss Beginning NSS initialization
2022-02-06 13:56:13.221946 UTC - [Parent 1686: Main Thread]: D/pipnss nsNSSComponent::InitializeNSS
2022-02-06 13:56:13.221947 UTC - [Parent 1686: Main Thread]: D/pipnss NSS Initialization beginning
2022-02-06 13:56:13.221951 UTC - [Parent 1686: Main Thread]: D/pipnss NSS profile at '/Users/rufusbuschart/Library/Thunderbird/Profiles/cizswoku.default-release'
2022-02-06 13:56:13.221953 UTC - [Parent 1686: Main Thread]: D/pipnss inSafeMode: 0
2022-02-06 13:56:13.224065 UTC - [Parent 1686: Main Thread]: D/pipnss initialized NSS in r/w mode
2022-02-06 13:56:13.224246 UTC - [Parent 1686: Main Thread]: D/pipnss NSS Initialization done
2022-02-06 13:56:13.224286 UTC - [Parent 1686: Main Thread]: D/pipnss nsNSSComponent: adding observers
2022-02-06 13:56:13.224288 UTC - [Parent 1686: Main Thread]: D/pipnss nsNSSComponent::MaybeEnableIntermediatePreloadingHealer
2022-02-06 13:56:13.225005 UTC - [Parent 1686: StreamTrans #2]: D/pipnss loaded CKBI from /Applications/Thunderbird.app/Contents/MacOS
2022-02-06 13:56:15.133835 UTC - [Parent 1686: Socket Thread]: D/pipnss [13342dbe0] nsSSLIOLayerSetOptions: using TLS version range (0x0303,0x0304)
2022-02-06 13:56:15.133848 UTC - [Parent 1686: Socket Thread]: D/pipnss [13342dbe0] Socket set up
2022-02-06 13:56:15.133868 UTC - [Parent 1686: Socket Thread]: D/pipnss [13342dbe0] connecting SSL socket
2022-02-06 13:56:15.134033 UTC - [Parent 1686: Socket Thread]: E/pipnss [13342dbe0] Lower layer connect error: -5934
2022-02-06 13:56:15.134075 UTC - [Parent 1686: Socket Thread]: D/pipnss [13348c040] nsSSLIOLayerSetOptions: using TLS version range (0x0303,0x0304)
2022-02-06 13:56:15.134082 UTC - [Parent 1686: Socket Thread]: D/pipnss [13348c040] Socket set up
2022-02-06 13:56:15.134088 UTC - [Parent 1686: Socket Thread]: D/pipnss [13348c040] connecting SSL socket
2022-02-06 13:56:15.134155 UTC - [Parent 1686: Socket Thread]: E/pipnss [13348c040] Lower layer connect error: -5934
2022-02-06 13:56:15.134161 UTC - [Parent 1686: Socket Thread]: V/pipnss [13348c040] poll SSL socket using lower 6
2022-02-06 13:56:15.134164 UTC - [Parent 1686: Socket Thread]: V/pipnss [13348c040] poll SSL socket returned 6
2022-02-06 13:56:15.134166 UTC - [Parent 1686: Socket Thread]: V/pipnss [13342dbe0] poll SSL socket using lower 6
2022-02-06 13:56:15.134167 UTC - [Parent 1686: Socket Thread]: V/pipnss [13342dbe0] poll SSL socket returned 6
2022-02-06 13:56:15.147543 UTC - [Parent 1686: Socket Thread]: V/pipnss [13348c040] poll SSL socket using lower 6
2022-02-06 13:56:15.147551 UTC - [Parent 1686: Socket Thread]: V/pipnss [13348c040] poll SSL socket returned 6
2022-02-06 13:56:15.147553 UTC - [Parent 1686: Socket Thread]: V/pipnss [13342dbe0] poll SSL socket using lower 6
2022-02-06 13:56:15.147555 UTC - [Parent 1686: Socket Thread]: V/pipnss [13342dbe0] poll SSL socket returned 6
2022-02-06 13:56:15.147567 UTC - [Parent 1686: Socket Thread]: V/pipnss [13348c040] poll SSL socket using lower 6
2022-02-06 13:56:15.147569 UTC - [Parent 1686: Socket Thread]: V/pipnss [13348c040] poll SSL socket returned 6
2022-02-06 13:56:15.147570 UTC - [Parent 1686: Socket Thread]: V/pipnss [13342dbe0] poll SSL socket using lower 6
2022-02-06 13:56:15.147572 UTC - [Parent 1686: Socket Thread]: V/pipnss [13342dbe0] poll SSL socket returned 6
2022-02-06 13:56:15.147684 UTC - [Parent 1686: Socket Thread]: D/pipnss [1369a84f0] nsSSLIOLayerSetOptions: using TLS version range (0x0303,0x0304)
2022-02-06 13:56:15.147698 UTC - [Parent 1686: Socket Thread]: D/pipnss [1369a84f0] Socket set up
2022-02-06 13:56:15.147771 UTC - [Parent 1686: Socket Thread]: D/pipnss [1369a84f0] connecting SSL socket
2022-02-06 13:56:15.147924 UTC - [Parent 1686: Socket Thread]: E/pipnss [1369a84f0] Lower layer connect error: -5934
2022-02-06 13:56:15.147932 UTC - [Parent 1686: Socket Thread]: V/pipnss [13348c040] poll SSL socket using lower 6
2022-02-06 13:56:15.147936 UTC - [Parent 1686: Socket Thread]: V/pipnss [13348c040] poll SSL socket returned 6
2022-02-06 13:56:15.148004 UTC - [Parent 1686: Socket Thread]: V/pipnss [13342dbe0] poll SSL socket using lower 6
2022-02-06 13:56:15.148007 UTC - [Parent 1686: Socket Thread]: V/pipnss [13342dbe0] poll SSL socket returned 6
2022-02-06 13:56:15.148008 UTC - [Parent 1686: Socket Thread]: V/pipnss [1369a84f0] poll SSL socket using lower 6
2022-02-06 13:56:15.148010 UTC - [Parent 1686: Socket Thread]: V/pipnss [1369a84f0] poll SSL socket returned 6
2022-02-06 13:56:15.155632 UTC - [Parent 1686: Socket Thread]: V/pipnss [13348c040] poll SSL socket using lower 5
2022-02-06 13:56:15.155639 UTC - [Parent 1686: Socket Thread]: V/pipnss [13348c040] poll SSL socket returned 6
2022-02-06 13:56:15.155641 UTC - [Parent 1686: Socket Thread]: V/pipnss [13348c040] poll SSL socket using lower 6
2022-02-06 13:56:15.155643 UTC - [Parent 1686: Socket Thread]: V/pipnss [13348c040] poll SSL socket returned 6
...


Expected results:

I would expect to see some messages about the validation of the X509 certificate used to create the S/MIME signature.