-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Labels
Description
Hi,
I use win-ca in my nodejs project to get certificate, and here is my code:
export function getAllCerts() {
return new Promise(resolve => {
ca({
async: true,
format: ca.der2.txt,
ondata: roots,
onend: resolve
})
}).then(() => {
console.log(roots)
return roots
})
And it works well in English format, but when the certificate content contains Chinese, I got unreadable codes. I think the reason is the encoding format in win-ca,and I want to know how to resolve this problem.
THX very much!