mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-25 00:19:07 +08:00
* support separate SSH and TLS keys in `generateUserCert` This PR splits the SSH and TLS public keys passed to `auth.(*Server).generateUserCert`. The attestation statement associated with the public key is also split. Now, `sshPublicKey` will be the subject public key of the returned SSH certificate, and `tlsPublicKey` will be the subject public key of the returned TLS certificate. If either is not provided, the corresponding certificate is not generated or returned. This does not update any code paths to actually use different keys here, but prepares for that in the future. * use public key conversion func * fix public key format in db tests