服务端
[ol]
[/ol]
客户端
picgo 配置如下(部分配置做了脱敏)
{
"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 }
}
处理过程与发现
[ol]
[/ol]
我的问题
[ol]
[/ol]
避免被攻击,就不暴露自己的域名了