perf: ssl.com支持ecc

This commit is contained in:
xiaojunnuo
2025-11-24 23:33:25 +08:00
parent 51cc08411f
commit b5ec04723d
4 changed files with 22 additions and 2 deletions
+19
View File
@@ -31,9 +31,28 @@ export const directory = {
sslcom:{
staging: 'https://acme.ssl.com/sslcom-dv-rsa',
production: 'https://acme.ssl.com/sslcom-dv-rsa',
ec: 'https://acme.ssl.com/sslcom-dv-ecc',
}
};
export function getDirectoryUrl(opts) {
const {sslProvider, pkType} = opts
const list= directory[sslProvider]
if (!list) {
throw new Error(`sslProvider ${sslProvider} not found`)
}
pkType = pkType || 'rsa'
if (pkType) {
pkType = pkType.toLowerCase().split("_")[0]
}
if (pkType && list[pkType]) {
return list[pkType]
}
return list.production
}
/**
* Crypto
*/
+2
View File
@@ -117,6 +117,8 @@ export const directory: {
}
};
export function getDirectoryUrl(opts:{sslProvider:string, pkType: string}): string;
/**
* Crypto
*/
@@ -1,4 +1,3 @@
import { logger } from "./index.js";
// @ts-ignore
import AsyncLock from "async-lock";