Added chmod to creating the directory.
Added in internal_only flag and chmod'ing when the directories are created.
Added Subject Alternative Name handling for UCC certs.