Windows error 0x80092023, -2146885597

Detailed Error Information

CRYPT_E_INVALID_X500_STRING[1]

MessageThe string contains an invalid X500 name attribute key, oid, value or delimiter.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode9 (0x009)
NameFACILITY_SSPI[2][1]
DescriptionThe source of the error code is the Security API layer.[2][1]
Error Code8227 (0x2023)

Questions

26votes
5answers

Why do I keep getting a failed when trying to make a .cer for testing?

I'm trying to make a certificate for testing and I am using this site How to: Create Your Own Test Certificate as a tutorial on how to but when it comes time to enter in the password after you create the password it says failed in the command prompt why [...] read more
certificate
ssl-certificate
5votes
3answers

Creating Self-Signed CA Certificate with makecert.exe

I am trying to create Self-Signed CA Certificate on 32bit Windows 7 (virtual). The makecert is v7.1 located in C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin>. Whenever i try to execute this command (elevated) ... makecert.exe -r -n “CN=MyCert CA” -pe -sv MyCert.pvk -a sha1 -len 2048 -b 09/04/2012 -e 09/04/2018 -cy authority MyCert.cer [...] read more
windows
ssl
ssl-certificate
makecert
2votes
1answer

Using CertReq.exe, how to encode special characters in Subject

We are using Microsoft Certificate Request (CertReq.exe) to build certificate requests programmatically. For this purpose, we have to create input INF files, see docs here. The Subject property is defined as Relative Distinguished Name string values, which should be encoded like specified by RFC 1779. That essentially means to simply [...] read more
windows
sdk
distinguishedname
1vote
1answer

How to allow commas in makecert.exe when creating a certificate?

I try to use makecert.exe to create a certificate but it shows like this: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin>makecert -ss TESTCOM -n CN="TESTCOM FOR Co.,Ltd." -sv E:\markcab\TEST.pvk -r E:\markcab\TEST.cer Error:CryptCertStrToNameW failed => 0x80092023 (-2146885597) Failed I know it caused by the comma contained in CN="TEST Co.,Ltd" , but I must to [...] read more
certificate
x509certificate
makecert
1vote
1answer

MS CA certificate generation with individual keys, C#

At the moment I am developing an Web application that will serve as a MS CA interface for certification enrollment. The error comes out after the app have generated the csr and send it to CA. Certificate should have the following structure: Serialnumber = UserId, CN = FirstName SecondName, O [...] read more
c#
ssl
cryptography
x509certificate
ca

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0