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

相关内容

热门资讯

今日公布“微扑克挂脚本”开挂辅... 微扑克挂脚本是一款可以让一直输的玩家,快速成为一个“必胜”的ai辅助神器,有需要的用户可以加我微信客...
热点推荐“wepoker透视真... 您好:wepoker透视真的假的这款游戏可以开挂的,确实是有挂的,很多玩家在这款游戏中打牌都会发现很...
开挂辅助软件"德普之... 德普之星透视辅助软件下载是一款可以让一直输的玩家,快速成为一个“必胜”的ai辅助神器,有需要的用户可...
开挂辅助脚本"wpk... 开挂辅助脚本"wpk私人局辅助是真的吗"开挂(透视)辅助神器(存在有挂);打开点击测试直接进入微信(...
开挂辅助软件"wpk... 开挂辅助软件"wpk辅助是真的吗"开挂(透视)辅助工具(有挂技巧);无需打开直接搜索薇:136704...
开挂辅助平台"wep... 开挂辅助平台"wepoker钻石怎么看底牌"开挂(透视)辅助下载(有挂详细);wepoker钻石怎么...
开挂辅助神器"wep... 开挂辅助神器"wepoker数据分析"开挂(透视)辅助插件(详细教程)1、下载安装好wepoker数...
开挂辅助下载"哈糖大... 开挂辅助下载"哈糖大菠萝怎么开挂"开挂(透视)辅助软件(真的有挂) 【无需打开直接搜索加薇13670...
开挂辅助神器"xpo... 开挂辅助神器"xpoker透视辅助"开挂(透视)辅助安装(有挂透视);是一款可以让一直输的玩家,快速...
开挂辅助平台"约局吧... 开挂辅助平台"约局吧游戏挂"开挂(透视)辅助软件(的确有挂)【无需打开直接搜索加薇136704302...