WIP more asn1
This commit is contained in:
parent
05cb14d75b
commit
086bf24af5
10
README.md
10
README.md
@ -49,7 +49,11 @@ return ecdsacsr({ key: key, domains: domains }).then(function (csr) {
|
||||
* PEM may be a plain string or a Buffer*
|
||||
* DER must be a Buffer*
|
||||
* `domains` must be a list of strings representing domain names
|
||||
* must be plain old utf8, not punycode
|
||||
* correctly handles utf-8
|
||||
* you may also use punycoded, if needed
|
||||
* `subject` will be `domains[0]` by default
|
||||
* you shouldn't use this unless you need to
|
||||
* you may need to if you need utf-8 for domains, but punycode for the subject
|
||||
|
||||
* "Buffer" can be a node Buffer, a JavaScript Uint8Array,
|
||||
or a JavaScript Array which contains only numbers between 0 and 255.
|
||||
@ -78,12 +82,10 @@ Known Issues
|
||||
------------
|
||||
|
||||
I've learned to be careful about talking about the future,
|
||||
however, I literally just published this tonight (2018-11-17)
|
||||
however, I literally just published this last night (2018-11-17)
|
||||
and there are a few things I plan to address but haven't yet:
|
||||
|
||||
* JWK not yet supported
|
||||
* non-ascii domains, such as 例.中国 not yet supported
|
||||
* total domains length over 127 characters not yet supported
|
||||
|
||||
New to Crypto?
|
||||
--------------
|
||||
|
2
test.sh
2
test.sh
@ -25,5 +25,5 @@ openssl req -text -noout -verify -in csr.pem 2>&1 | grep 'verify OK' && echo 'pa
|
||||
rm csr.pem
|
||||
node bin/ecdsacsr.js ./privkey-ec-p256.pem 例.中国,example.com > csr.pem
|
||||
openssl req -text -noout -verify -in csr.pem 2>&1 | grep 'verify OK' && echo 'pass' || echo 'FAIL'
|
||||
openssl req -text -noout -verify -in csr.pem
|
||||
#openssl req -text -noout -verify -in csr.pem
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user