0
makecert.exe -r -n "CN=TEST" -pe -sv TEST.pvk -a sha512 -len 2048 -b 01/01/2014 -e 12/31/2075 TEST.cer
pvk2pfx.exe -pvk TEST.pvk -spc TEST.cer -pfx TEST.pfx
다음 C# 코드 :이의
X509Certificate2 cert = new X509Certificate2("TEST.pfx");
Console.WriteLine(cert.SignatureAlgorithm.FriendlyName);
var creds = new X509SigningCredentials(cert);
Console.WriteLine(creds.SignatureAlgorithm);
Console.WriteLine("Key size: {0}", creds.SigningKey.KeySize/8);
결과 : 내가 무엇
sha512RSA
http://www.w3.org/2001/04/xmldsig-more#rsa-sha256
Key size: 256
인증서가 SHA512로 생성되었을 때 SHA256이라는 서명 자격 증명이 나오는 이유는 무엇입니까? 내가 뭔가를 오해하고 있니?
참고 : makecert.exe 도구는 지원되지 않으므로 지원되는 환경에서는 사용하지 않는 것이 좋습니다. – Crypt32