← Endpoint Configuration | Transport (中文) | Proxy →
Default
protocol—https
const client = new ECSClient({
protocol: "http",
region: "cn-beijing",
});Default
ignoreSSL—false
⚠️ Warning: Ignoring SSL verification in production poses serious security risks. Use only in confirmed safe test environments.
const client = new ECSClient({
region: "cn-beijing",
httpOptions: {
ignoreSSL: true,
},
});const client = new ECSClient({
region: "cn-beijing",
httpOptions: {
pool: {
keepAlive: true,
keepAliveMsecs: 1000,
maxSockets: 50,
maxFreeSockets: 10,
},
},
});StsAssumeRoleProvider, OidcCredentialProvider, and SamlCredentialProvider also support the following optional TLS settings:
caFile: path to a custom CA certificate fileinsecureSkipVerify: whether to skip TLS certificate verification, defaultfalse, for debugging only, do not use in production
import { StsAssumeRoleProvider } from "@volcengine/sdk-core";
const credentialProvider = new StsAssumeRoleProvider({
accessKeyId: "ASSUME_ROLE_CALLER_AK",
secretAccessKey: "ASSUME_ROLE_CALLER_SK",
roleTrn: "trn:iam::2110400000:role/role123",
region: "cn-beijing",
caFile: "/path/to/custom-ca.pem",
insecureSkipVerify: false,
});← Endpoint Configuration | Transport (中文) | Proxy →