问题描述
我正在尝试访问我的AWS Application Load Balancer(ALB),但是却获得了net :: ERR_CERT_COMMON_NAME_INVALID。
当前方案:
- ALB有一个HTTPS:443侦听器(仅存在一个侦听器),并为我的域
final user = _auth.getCurrentUser();
和example.com
提供了SSL证书。
我很乐意提供支持查询所需的其他详细信息。
谢谢。
解决方法
这归结为以下情况之一:
- 附加到负载均衡器的SSL证书不包含您期望的域。对于通配符,请记住,
DO $$ BEGIN PERFORM * FROM employees; END; $$
仅覆盖单个级别的子域,例如Widget getPostButton(BuildContext context) { return Padding( padding: EdgeInsets.fromLTRB(15.0,10.0,15.0,15.0),child: RaisedButton( shape: StadiumBorder(),child: Text("Post New Request"),onPressed: () { if (_requestFormKey.currentState.validate()) { showDialog( context: context,builder: (context) { return AlertDialog( title: Text('Are you sure?'),content: Text("Are you sure to post new request?"),backgroundColor: Theme .of(context) .primaryColor,actions: <Widget>[ RaisedButton( shape: StadiumBorder(),child: Text("Yes,Post request"),onPressed: () => { Navigator.of(context).pop(true) }),RaisedButton( shape: StadiumBorder(),color: Theme .of(context) .errorColor,child: Text("No",style: TextStyle(color: Colors.white)),onPressed: () => Navigator.of(context).pop(false),) ],); }). then((value) { print('Result: ' + value.toString()); if (value) { for (int i = 0; i < 1000; i++) { RequestsService.addRequest(request).then((value) => {}); } } }); } },),); }
,而不会覆盖辅助级别的子域,例如*.example.com
。 - SSL不支持您使用浏览器访问的域,您需要确保SSL仅对该域有效(如果它重定向到另一个域,或者您正尝试通过负载平衡器域访问名称将无效)。
通过运行以下命令,您应该能够获得有关该错误的更多信息。
www.example.com