AWS网关API中配置了TLSv1.0的自定义域名,但实际上似乎使用的是TLSv1.2。这是怎么回事?
创始人
2024-09-27 18:00:37
0

这可能是由于AWS网关API默认使用TLS v1.2而不是v1.0引起的。要确保只使用TLS v1.0,请在API Gateway中启用TLS v1.0协议,并在定义自定义域名时启用相应的TLS v1.0证书。

以下是在API Gateway中启用TLS v1.0协议并使用相应的TLS v1.0证书的示例代码:

resource "aws_api_gateway_rest_api" "example" {
  name        = "example-api"
  description = "Example API"
}

resource "aws_api_gateway_resource" "example" {
  rest_api_id = aws_api_gateway_rest_api.example.id
  parent_id   = aws_api_gateway_rest_api.example.root_resource_id
  path_part   = "example"
}

resource "aws_api_gateway_method" "example" {
  rest_api_id   = aws_api_gateway_rest_api.example.id
  resource_id   = aws_api_gateway_resource.example.id
  http_method   = "GET"
  authorization = "NONE"
}

resource "aws_acm_certificate" "example" {
  domain_name       = "example.com"
  validation_method = "DNS"
}

resource "aws_api_gateway_base_path_mapping" "example" {
  rest_api_id    = aws_api_gateway_rest_api.example.id
  stage_name     = aws_api_gateway_deployment.example.stage_name
  domain_name    = aws_route53_record.example.fqdn
  base_path      = "(none)"
  certificate_arn = aws_acm_certificate.example.arn
}

resource "aws_route53_zone" "example" {
  name = "example.com"
}

resource "aws_route53_record" "example" {
  zone_id = aws_route53_zone.example.zone_id
  name    = "example.com"
  type    = "CNAME"
  ttl     = "300"

  records = [
    aws_api_gateway_domain_name.example.regional_domain_name,
  ]
}

resource "aws_api_gateway_domain_name" "example" {
  certificate_arn = aws_ac

相关内容

热门资讯

辅助开挂!湖北卡五星教程辅助,... 辅助开挂!湖北卡五星教程辅助,aapoker发牌逻辑(透视)开挂辅助安装(有挂秘籍);超受欢迎的湖北...
开挂辅助!蛮王大厅透视辅助,w... 开挂辅助!蛮王大厅透视辅助,wpk俱乐部辅助器(透视)开挂辅助安装(有挂讲解);是一款可以让一直输的...
开挂辅助!九天大厅辅助器,ne... 开挂辅助!九天大厅辅助器,newpoker怎么安装脚本(透视)开挂辅助脚本(有挂方针);一、九天大厅...
开挂辅助!wepoker免费透... 开挂辅助!wepoker免费透视脚本,哈糖大菠萝能开挂吗(透视)开挂辅助软件(有挂分享);1、不需要...
辅助开挂!欢聚水鱼辅助,wep... 辅助开挂!欢聚水鱼辅助,wepoker透视底牌脚本(透视)开挂辅助软件(有挂解惑);是一款可以让一直...
开挂辅助!情怀七喜游戏辅助,悦... 开挂辅助!情怀七喜游戏辅助,悦扑克脚本(透视)开挂辅助软件(确实有挂);最新版2026是一款经典耐玩...
辅助开挂!哥哥打大a辅助辅助,... 辅助开挂!哥哥打大a辅助辅助,佛手在线大菠萝智能辅助器(透视)开挂辅助平台(有挂存在);哥哥打大a辅...
开挂辅助!蛮王大厅房卡辅助,w... 开挂辅助!蛮王大厅房卡辅助,we-poker辅助器(透视)开挂辅助神器(有挂透明挂);1、超多福利:...
开挂辅助!潮友会鱼虾蟹破解,w... 开挂辅助!潮友会鱼虾蟹破解,we-poker辅助(透视)开挂辅助下载(确实有挂);详细潮友会鱼虾蟹破...
辅助开挂!微信牵手跑有没有挂,... 辅助开挂!微信牵手跑有没有挂,wpk透视辅助靠谱吗(透视)开挂辅助安装(发现有挂);最新版2026是...