{
"picBed": {
"uploader": "aws-s3",
"current": "aws-s3",
"aws-s3": {
"accessKeyID": "xxx",
"secretAccessKey": "xxx",
"bucketName": "images",
"uploadPath": "{year}/{month}/{md5}.{extName}",
"region": "home",
"endpoint": "https://xxx.top:9000",
"proxy": "",
"urlPrefix": "https://xxx.top",
"urlSuffix": "",
"pathStyleAccess": true,
"rejectUnauthorized": true,
"acl": "public-read",
"disableBucketPrefixToURL": false
}
},
"picgoPlugins": {
"picgo-plugin-s3": true
}
}
使用 picgo 上传到使用 minio 搭建的图床提示了如下异常
C:\Users\wuhun\Desktop>picgo -v
1.5.7
C:\Users\wuhun\Desktop>picgo upload 1.png
[PicGo INFO]: Before transform
[PicGo INFO]: Transforming... Current transformer is [path]
[PicGo INFO]: Before upload
[PicGo INFO]: Uploading... Current uploader is [aws-s3]
[PicGo ERROR]: 上传到 S3 存储发生错误,请检查网络连接和配置是否正确
[PicGo ERROR]: Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1677:34)
at TLSSocket.emit (node:events:519:28)
at TLSSocket._finishInit (node:_tls_wrap:1076:8)
at ssl.onhandshakedone (node:_tls_wrap:862:12) {
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
'$metadata': { attempts: 1, totalRetryDelay: 0 }
}
[PicGo WARN]: failed
[PicGo ERROR]: Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1677:34)
at TLSSocket.emit (node:events:519:28)
at TLSSocket._finishInit (node:_tls_wrap:1076:8)
at ssl.onhandshakedone (node:_tls_wrap:862:12) {
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
'$metadata': { attempts: 1, totalRetryDelay: 0 }
}
避免被攻击,就不暴露自己的域名了
1
julyclyde 77 天前
你可以调用
openssl s_client -connect server:port -noout -text (注意 connect 前边是单个横线,不是两个) 看看从客户端视角,服务器到底出示了什么样的证书?是不是缺了中间层证书? |