devcert icon indicating copy to clipboard operation
devcert copied to clipboard

name can't be longer than 64 characters

Open toddself opened this issue 7 years ago • 2 comments

Was getting a failure on the openssl req -config command because the common name was too long.

This should truncate the common name at 64 characters if it exceeds it.

↳ openssl req -config /Users/todd/.config/devcert/openssl.conf -subj "/CN=-Users-todd-src-showrunner-node_modules-@scriptollc-code-mirror-ot-standalone.js" -key /Users/todd/.config/devcert/-Users-todd-src-showrunner-node_modules-@scriptollc-code-mirror-ot-standalone.js.key -out /Users/todd/.config/devcert/-Users-todd-src-showrunner-node_modules-@scriptollc-code-mirror-ot-standalone.js.csr -new
problems making Certificate Request
4550:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:/BuildRoot/Library/Caches/com.apple.xbs/Sources/OpenSSL098/OpenSSL098-64.50.6/src/crypto/asn1/a_mbstr.c:154:maxsize=64

toddself avatar Jun 26 '17 23:06 toddself

Fixed in #8

toddself avatar Jun 26 '17 23:06 toddself

Sorry for the silence here, notifications got turned off on this repo by accident. I'll take a look at the PR!

davewasmer avatar Mar 30 '18 17:03 davewasmer