united-states fifth-amendment
Can a US court order the revelation of a secret that might incriminate the revealer?
<p>I think the question is self explanatory.  It might also be naive.  In the light of:</p>

<ul>
<li>the FBI request to  Apple to allow access to data on a phone</li>
<li>the protections of the fifth amendment</li>
<li>the Snowden leaks of NSA/ governmental practice </li>
</ul>

<p>can a court order a person or organization (a witness?) to reveal a secret, whether incriminating or not?</p>

<p>I think this question is slightly different to the closely-related <a href="https://law.stackexchange.com/questions/1523/can-a-us-citizen-be-required-to-provide-the-authentication-key-for-encrypted-dat?rq=1">Can a US citizen be required to provide the authentication key for encrypted data on a confiscated computer?</a></p>

<p>Would it make a difference if the party being ordered and/or the target was not a US citizen/subject?</p>

<p>Can the court make a gag order on the request?</p>

<p>What penalties might apply for non-compliance? </p>

<p>A court can generally compel anyone to reveal a secret, except a foreign diplomat. If the testimony would incriminate the person, they can remain silent, unless they have been granted immunity from prosecution. Courts cannot compel a person to violate the law, and there are laws requiring people to keep their yaps shut (e.g. not reveal state secrets, not violate attorney-client privilege). At the state level, there are so-called shield laws that allow reporters to refuse to reveal their sources. There is also immunity from testifying against your spouse. They would not compel you to testify in open court if doing so would endanger you, but you could be compelled to testify in secret session. Refusal to comply with a court order to testify could land you in jail. It's not clear to me that there is an upper limit on how long that could be, though I think the federal limit is 18 months. Applied to refusal to testify, once the witness's testimony would be moot (the trial is over), the witness would be released.</p>
