github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/commands/tls/ca-info.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Commands: tls ca info'
     4  description: |
     5    This command displays relevant information that is contained within a
     6    Certificate Authority certificate.
     7  ---
     8  
     9  # Command: nomad tls ca info
    10  
    11  Info is used to display relevant information that is contained within the
    12  provided certificate file.
    13  
    14  ## Usage
    15  
    16  ```plaintext
    17  nomad tls ca info <CA file>
    18  ```
    19  
    20  ## Example
    21  
    22  Display default CA:
    23  
    24  ```shell-session
    25  $ nomad tls ca info nomad-agent-ca.pem
    26  Serial Number          314623649437549144006237783956683542664
    27  Issuer CN              Nomad Agent CA 314623649437549144006237783956683542664
    28  Common Name            CN=Nomad Agent CA 314623649437549144006237783956683542664,O=HashiCorp Inc.,POSTALCODE=94105,STREET=101 Second Street,L=San Francisco,ST=CA,C=US
    29  Expiry Date            2027-11-13 21:37:38 +0000 UTC
    30  Permitted DNS Domains  []
    31  ```
    32  
    33  Display CA with a custom domain "foo.com":
    34  
    35  ```shell-session
    36  $ nomad tls ca info foo.com-agent-ca.pem
    37  Serial Number          189027561135335847320487296530900061259
    38  Issuer CN              Nomad Agent CA 189027561135335847320487296530900061259
    39  Common Name            CN=Nomad Agent CA 189027561135335847320487296530900061259,O=HashiCorp Inc.,POSTALCODE=94105,STREET=101 Second Street,L=San Francisco,ST=CA,C=US
    40  Expiry Date            2027-11-13 21:38:15 +0000 UTC
    41  Permitted DNS Domains  [foo.com localhost]
    42  ```