这个错误表示使用的URI方案无效。一种可能的解决方法是检查URI是否按照指定的格式进行构造。例如,对于HTTPS协议,URI应以'https://”开头。如果URI的格式正确,可能需要升级ACMESharp库,以解决与URI方案相关的问题。以下是使用.NET Core中的ACMESharp库时的示例代码:
var client = new AcmeClient(new AcmeClientOptions
{
    Server = "https://acme-v02.api.letsencrypt.org/directory",
    UseEfs = false,
    AccountKey = new KeyInfo
    {
        PrivateKeyPath = "path/to/private/key.pem"
    }
});
var account = await client.CreateAccountAsync(new[] { "mailto:email@example.com" }, true);
// other ACME code...
                
            
                    上一篇:ACME客户端实现
                
下一篇:ACME挑战的响应无效