-
Hi! I am running an EC2 instance that I already have the SSH certificate issued to with the following command:
However I now in the future want to add another principal. To do that I need to issue a new certificate. I have revoked the existing certificate with the command
and I keep getting the error
Can anyone advise me on how I should proceed on issuing a new ssh cert on an ec2 instance that already has had an ssh cert issued in the past? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Because the Instance Identity Document that the AWS provisioner uses to authenticate your host certificate request is located at a URL accessible to anyone on the VM, the IID is treated as a single-use token by the CA when used to sign an SSH host certificate. You wouldn't want any user on your system (or, an attacker) to be able to mint more host certificates using that IID. So, you'll need to use a different CA provisioner to issue this certificate. Since you're doing it manually, a JWK provisioner would be the simplest option for this. Hope this helps. |
Beta Was this translation helpful? Give feedback.
Because the Instance Identity Document that the AWS provisioner uses to authenticate your host certificate request is located at a URL accessible to anyone on the VM, the IID is treated as a single-use token by the CA when used to sign an SSH host certificate. You wouldn't want any user on your system (or, an attacker) to be able to mint more host certificates using that IID.
So, you'll need to use a different CA provisioner to issue this certificate. Since you're doing it manually, a JWK provisioner would be the simplest option for this. Hope this helps.