我在objEnroll.CreatePFX中遇到了麻烦,它唯一的返回类型是字符串,我需要的是一个二进制输出,可以与我打开证书MMC并导出PFX时发生的事情相媲美。 CX509Enrollment objEnroll = new CX509Enrollment(); X509CertificateEnrollmentContext.ContextUser,
te
但是,由于makecert没有能力添加SubjectAltName字段,所以我需要将代码迁移到certenroll.dllpublic static X509Certificate2create the certificate from file from {0}", certFile), ex); return cert;这是certenroll.dll