.pem certificate not accepted by mac Keychain

0

I am using AWS Cloud Services, when I create an EC2 instance Amazon automatically generates a Security Certificate in .pem file extension, it downloads to my mac computer, when I click it or try and import it to Keychain, there is an error. Terminal commands editor can open the file, but I am not sure how to detect corrupt data. I used Homebrew to try and convert the file to .12, that will not work. Any ideas?

Thanks, TJ

tjjeff
질문됨 일 년 전1549회 조회
2개 답변
0

Hi there, the pem file will be the key required to ssh to the ec2. You will not be able to import key chain, you’ll have to use an ssh terminal program and specify this key when connecting.

Please see how to ssh from a Linux box and follow the instructions

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html

profile picture
전문가
답변함 일 년 전
0

Gary,

chmod 600 us-east-kp.pem ... returns 'no such file for directory' ... i imagine that .pem might be an issue, would you suggest a good way to convert the file to .12 which I believe is better on mac, thoughts?

tjjeff
답변함 일 년 전
  • Sounds like you’re not in the same directory as the pem file, don’t have access or the file is called something different. If you perform an ls can you see the file? You don’t need a p12 file. Both your messages say file not found. That maybe the issue here. ls the directory and see what the file name is

  • Gary, thx for the feedback. See below the terminal command entries, as you can see the file is visible in downloads. FYI My keychain will still not accept the file. Below I give a chmod command to make sure I have permissions, then execute an ssh connect, but i am denied permission.

    "tj downloads % ls us-east-kp1.pem us-east-kp1.pem tj downloads % chmod 400 us-east-kp1.pem tj downloads % ssh -i "us-east-kp1.pem" ec2-user@ec2-xx-xxx-x-xxx.compute-1.amazonaws.com

    "ec2-user@ec2-xx-xxx-x-xxx.compute-1.amazonaws.com: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). tj downloads %"

    Your thoughts?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠