git: 9front

Download patch

ref: 8bba90b115358d8b46835541ce4cbe9bb5638f89
parent: 91ee1f1b6872ecfc4df964213123bdbf5c45b1ce
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);
--