我正在使用一个java库,该库与我提供的端点建立HTTP连接。该库使用的是apache,我不能以任何方式更改这一点或修改代码(如果我创建DefaultHTTPClient客户端的实例,我知道如何解决这个问题,但我无权访问它)。它在连接到终结点时引发SSL异常。我必须使用HTTPS并且我必须使用I(连接到具有相同证书的多个I)。我得到的错误是:
javax.net.ssl.SSLException: Certificate for <IP> doesn't match common name of the certificate subject: domainname
其中I
我试图为一个域名设置一个别名,这个域名是通过53路线购买的。别名将指向我的站点中的一个页面,其URL如下:
http://example.com/website/:id
我的api使用以下参数设置了一个hostedZone:
var params = {
CallerReference: req.body.projectId,
Name: req.body.domain,
HostedZoneConfig: {
Comment: `the zone created on ${today} for ${req.body.domain}`,
P
我试图让我的域总是重定向到一个非www版本,并且总是使用https。我找到了,但它只起作用了。
如果我尝试以下任何一种方法,它都是有效的:
http://domain.com (This will redirect properly to https://domain.com)
http://www.domain.com (This will redirect properly to https://domain.com)
https://domain.com (This does nothing as it is already correct)
但是,如果键入https://www.dom