shithub: riscv

Download patch

ref: 79c6a0f342abca18750312b55cb1d61ef8dd5619
parent: 87eb9bc2b755ea8cfa0c4667e3da3f25bdda1cb1
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Oct 25 14:15:53 EDT 2021

acmed: tokenize domains from subject also with spaces (fixed multidom cert)

--- a/sys/src/cmd/ip/acmed.c
+++ b/sys/src/cmd/ip/acmed.c
@@ -756,7 +756,7 @@
 		sysfatal("decode csr: %r");
 	if((csr = encurl64(der, nder)) == nil)
 		sysfatal("encode %s: %r", csrpath);
-	if((ndom = getfields(name, dom, nelem(dom), 1, ",")) == nelem(dom))
+	if((ndom = getfields(name, dom, nelem(dom), 1, ", ")) == nelem(dom))
 		sysfatal("too man domains");
 	rsapubfree(rsa);
 	close(fd);