I think the question is self explanatory. It might also be naive. In the light of:
- the FBI request to Apple to allow access to data on a phone
- the protections of the fifth amendment
- the Snowden leaks of NSA/ governmental practice
can a court order a person or organization (a witness?) to reveal a secret, whether incriminating or not?
I think this question is slightly different to the closely-related Can a US citizen be required to provide the authentication key for encrypted data on a confiscated computer?
Would it make a difference if the party being ordered and/or the target was not a US citizen/subject?
Can the court make a gag order on the request?
What penalties might apply for non-compliance?