问题描述
makecert似乎不支持十六进制值。至少我无法弄清楚如何逃避转义字符,因为十六进制代码( \22 )也应该产生双引号。?
makecert doesn't seem to support hex values. At least i couldn't figure out how to escape escape character as hex code (\22) should also produce double quotes.?
根据X. 500 / X.509 rfc2253标准:
According to X.500/X.509 rfc2253 standard:
If a character to be escaped is one of the list shown above, then it
is prefixed by a backslash ('\' ASCII 92).
Otherwise the character to be escaped is replaced by a backslash and
two hex digits, which form a single byte in the code of the
character.
https:// msdn.microsoft.com/en-us/library/aa366101(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/aa366101(v=vs.85).aspx
推荐答案
感谢您发布此处。
根据我的搜索,使用参数 certNum的X509.MakeCert方法。 覆盖序列号由certNum设置的数字,具有十六进制格式的更大的无限整数,例如serialNumber = 12deadbeefcafe0123。
Based on my search, X509.MakeCert Method with the parameter certNum. To override the serial number set by certNum with a larger, unlimited integer in hexadecimal format, e.g. serialNumber=12deadbeefcafe0123.
有关详细信息,请参阅以下链接。
For more details, you could refer to the following link.
https://www.cryptosys.net/pki/manpki/pki_M_X509_MakeCert.html
最诚挚的问候,
Wendy
这篇关于Makecert将字符作为十六进制传递的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!