且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

[UWP]如何创建具有长日期的自定义证书,例如10年

更新时间:2023-02-12 22:20:41

嗨Tony Neri,

Hi Tony Henrique,

根据您的错误信息,它应该与证书相关,并且作为文档  New-SelfSignedCertificate ,您可以尝试使用
< strong> -NotAfter 参数指定日期和时间 证书到期。但是,一般来说,自签x509证书生效日期为一年,如果您需要大约10年的时间,可以自己购买。

According to your error info, it should be relative to the certificate and as the document New-SelfSignedCertificate, you can try to use the -NotAfter parameter to specify the date and time that the certificate expires. But, generally, the self- sign x509 certificate effective date is one year, if you need more time about 10 years, you can buy it by yourself.

祝你好运,

Breeze