---
name: "sq-autocrypt-decode"
section: "1"
platform: "linux"
package: "sq"
version: "0.27.0-2+b1"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/sq-autocrypt-decode"
---

# sq-autocrypt-decode(1)

Reads Autocrypt-encoded certificates

## NAME

decode - Reads Autocrypt-encoded certificates

## SYNOPSIS

**decode** \[**-o**\|**--output**\] \[**-B**\|**--binary**\] \[**-h**\|**--help**\] \[*FILE*\]

## DESCRIPTION

Reads Autocrypt-encoded certificates

Given an autocrypt header (or an key-gossip header), this command extracts the certificate encoded within it.

The converse operation is "sq autocrypt encode-sender".

## OPTIONS

- **-o**, **--output**=*FILE*

  Writes to FILE or stdout if omitted

- **-B**, **--binary**

  Emits binary data

- **-h**, **--help**

  Print help information

- \[*FILE*\]

  Reads from FILE or stdin if omitted

## EXAMPLES

 Extract all certificates from a mail

```
 sq autocrypt decode autocrypt.eml
```

## SEE ALSO

For the full documentation see \<https://docs.sequoia-pgp.org/sq/\>.

[sq(1)](/sq/1.md) [sq-armor(1)](/sq-armor/1.md) [sq-autocrypt(1)](/sq-autocrypt/1.md) [sq-autocrypt-encode-sender(1)](/sq-autocrypt-encode-sender/1.md) [sq-certify(1)](/sq-certify/1.md) [sq-dearmor(1)](/sq-dearmor/1.md) [sq-decrypt(1)](/sq-decrypt/1.md) [sq-encrypt(1)](/sq-encrypt/1.md) [sq-inspect(1)](/sq-inspect/1.md) [sq-key(1)](/sq-key/1.md) [sq-keyring(1)](/sq-keyring/1.md) [sq-keyserver(1)](/sq-keyserver/1.md) [sq-packet(1)](/sq-packet/1.md) [sq-revoke(1)](/sq-revoke/1.md) [sq-sign(1)](/sq-sign/1.md) [sq-verify(1)](/sq-verify/1.md) [sq-wkd(1)](/sq-wkd/1.md)
