amazon-web-services - 如何对Amazon ELB SSL使用* .pfx证书

标签 amazon-web-services openssl ssl-certificate amazon-elb pfx

我有cert.pfx文件,我需要安装才能在Amazon Elastic Load Balancer中使用。
我该怎么做?

最佳答案

  • 提取不带密码的私钥。第一条命令将要求pfx密码,并提示输入key.pem的密码; 必须为提供key.pem的密码。第二个命令要求为第一个命令提供的key.pem密码。
  • openssl pkcs12 -in cert.pfx -nocerts -out key.pem openssl rsa -in key.pem -out server.key
  • 提取证书:
  • openssl pkcs12 -in cert.pfx -clcerts -nokeys -out cert.pem
  • 提取证书链:
  • openssl pkcs12 -in cert.pfx -nodes -nokeys -out chain.pem
  • 证书链包含多个项目。您可能需要删除引用您的证书的项目,该项目位于顶部,不需要。尝试使用/不删除顶部项目。
    之后,其他项目应以相反的顺序放置。
  • server.key是ELB中的私钥,cert.pem是ELB中的证书,输出#4是证书链。

  • 祝好运!

    关于amazon-web-services - 如何对Amazon ELB SSL使用* .pfx证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36156917/

    相关文章:

    amazon-web-services - 错误: permission denied for relation svv_redshift_databases

    amazon-web-services - 错误: The provided credentials do not have permission to create the service-linked role for EC2 Spot Instances

    PHP openssl_x509_parse 不为 CSR 返回数据

    ssl - 来自 Cloudflare 'Origin Certificates' 的通配符证书不适用于 Azure webApps

    powershell - 导出-PfxCertificate : Cannot export non-exportable private key

    ruby-on-rails-3 - 你如何调用db :seed on AWS Elastic Beanstalk apps?

    amazon-web-services - 使用 Cloudformation 创建新的 Elasticache Redis 实例时参数组合无效

    linux - 如何使用 Linux CLI 知道某些网站的 SSL 指纹?

    c - 具有全双工套接字通信的 SSL 重新协商

    ssl - Telegram SetWebHook 自签名证书