예제 #1
0
        public async Task CreateRootCA2(string infrastructureDomainName)
        {
            var myCAKey = shellHelper.Bash("openssl genrsa 2048");

            var myCAPem = shellHelper.BashAndStdIn(
                "openssl req -x509 -new -nodes -key /dev/stdin -sha256 -days 1825"
                + " -subj '/C=US/ST=NY/L=Somewhere/organizationName=MyOrg/OU=MyDept/CN=" + infrastructureDomainName + "' ", myCAKey);


            await Task.CompletedTask;
        }