Skip to content

Unreadable codes in Chinese when use win-ca #29

@yaphone

Description

@yaphone

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!

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions