Skip to content

support get info from an UTF-8 encode pem certificate#790

Open
yaphone wants to merge 1 commit intodigitalbazaar:mainfrom
yaphone:master
Open

support get info from an UTF-8 encode pem certificate#790
yaphone wants to merge 1 commit intodigitalbazaar:mainfrom
yaphone:master

Conversation

@yaphone
Copy link
Copy Markdown

@yaphone yaphone commented Jun 9, 2020

I tried to get info from a pem certificate whose Subject contains utf-8 encoded words(Chinese Simple), and I got unreadable codes.
This is caused by the method _fromDer() in /lib/ans1.js, this method mismatch utf-8 encode words.
I hava solve this problem, at least in Chinese Simple which encoded by utf-8.
I want to make a PR, also contains some test code in /test/unit/utf8-pem.js, please check it, thanks very much.

support get info from an UTF-8 encode pem certificate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant