Having trouble associated SSL cert with Amazon Cloudfront

前端 未结 2 828
轮回少年
轮回少年 2021-01-17 12:18

I\'m trying to associate a custom SSL certificate with Cloudfront. I uploaded it to IAM with the cert, privatekey, and chain. I gave it an upload path of /cloudfront.

<
2条回答
  •  清歌不尽
    2021-01-17 12:48

    So I figured out the problem!

    DNSimple by default makes you a 2432 bit key, which is larger than the max size of 2048bit that Amazon allows. If you want to test the size of your key and cert, run the following:

    Private Key:

    openssl rsa -in private.key -text -noout

    Example: Private-Key: (2048 bit)

    Cert:

    openssl x509 -in public.cert -text -noout

    Example output: Public-Key: (2048 bit)

    The output of each command will tell you how many bits it is. If you bought a SSL cert from DNSimple, you can message them and they can reauthorize your cert/key with a different size.

    After doing this, associating your cert with your Cloudfront distribution should work.

提交回复
热议问题