mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
chore: 1
This commit is contained in:
@@ -41,13 +41,13 @@ export function getDirectoryUrl(opts) {
|
|||||||
if (!list) {
|
if (!list) {
|
||||||
throw new Error(`sslProvider ${sslProvider} not found`)
|
throw new Error(`sslProvider ${sslProvider} not found`)
|
||||||
}
|
}
|
||||||
pkType = pkType || 'rsa'
|
let pkTypePrefix = pkType || 'rsa'
|
||||||
if (pkType) {
|
if (pkType) {
|
||||||
pkType = pkType.toLowerCase().split("_")[0]
|
pkTypePrefix = pkType.toLowerCase().split("_")[0]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pkType && list[pkType]) {
|
if (pkTypePrefix && list[pkTypePrefix]) {
|
||||||
return list[pkType]
|
return list[pkTypePrefix]
|
||||||
}
|
}
|
||||||
|
|
||||||
return list.production
|
return list.production
|
||||||
|
|||||||
Reference in New Issue
Block a user