Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.5.0 Upgrade Regression: principals field on certificate no longer contains DNS name #1786

Closed
russjones opened this issue Mar 16, 2018 · 0 comments

Comments

@russjones
Copy link
Contributor

russjones commented Mar 16, 2018

The following is the host certificate generated for a node running Teleport 2.4.5.

node.cert:
        Type: [email protected] host certificate
        Public key: RSA-CERT SHA256:+SiDP3sqXp/2H0We6sKuDfwfFADEfYGIY0yB2S4pwgc
        Signing CA: RSA SHA256:PBAazMe8RZVTQGgHYFzGCfJDXr+aWesfBYK/lhkO6BQ
        Key ID: ""
        Serial: 0
        Valid: forever
        Principals: 
                3660d7c9-d218-4871-beed-f4d460601528.example.com
                node.example.com
                node
        Critical Options: (none)
        Extensions: 
                x-teleport-authority UNKNOWN OPTION (len 15)
                x-teleport-role UNKNOWN OPTION (len 8)

After upgrading to 2.5.0, the host certificate changes to the following:

node.cert:
        Type: [email protected] host certificate
        Public key: RSA-CERT SHA256:zYNL54ur63z3XVdXW5XEmrd+uVmNInqXS+3dYyl9ges
        Signing CA: RSA SHA256:PBAazMe8RZVTQGgHYFzGCfJDXr+aWesfBYK/lhkO6BQ
        Key ID: ""
        Serial: 0
        Valid: forever
        Principals: 
                3660d7c9-d218-4871-beed-f4d460601528.example.com
        Critical Options: (none)
        Extensions: 
                x-teleport-authority UNKNOWN OPTION (len 15)
                x-teleport-role UNKNOWN OPTION (len 8)

Note that the Principals field no longer contains the DNS name. This causes OpenSSH clients to fail when connecting:

$ ssh -o "ProxyCommand ssh -p 3023 %[email protected] -s proxy:%h:%p" \
  node.example.com -p 3022
key_cert_check_authority: invalid certificate
Certificate invalid: name is not a listed principal
The authenticity of host '[proxy.example.com]:3023 ([127.0.0.1]:3023)' can't be established.
RSA key fingerprint is SHA256:XjEgLvfJ3yc5s8DczwGaiVgh236iUPoP0ueK5PFOJ4k.
Are you sure you want to continue connecting (yes/no)? ^C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant