New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PSPKI 3.7.2 - Get-CertificateRequest - Input data does not represent valid 'OBJECT_IDENTIFIER' type. #139
Comments
PS: csr is valid according to |
can you send me your CSR? You can send it through contact form: https://www.sysadmins.lv/contact.aspx |
Send as requested |
thanks, received. I will investigate this. |
Maybe I found the error myself. |
No, the problem is somewhere else. Your request is PKCS10, however the code incorrectly detects it as PKCS7 and attempts to unroll PKCS7 syntax. |
yeah, you were right. The problem was with leading dot. While this syntax it is not valid name for Subject Alternative Names extension, it is valid for Name Constraints extension. I've fixed this in dev branch and fix will be released in next PSPKI version. |
Thank you very much. |
Fixed in v4.0.0 |
Hi,
I get the following error while trying to read a certificate request with Get-CertificateRequest
`
PS C:> New-Object Security.Cryptography.X509CertificateRequests.X509CertificateRequest -ArgumentList C:\certs\mycsr.csr
$error[0].Exception.InnerException.psbase
$error[0].Exception.InnerException.StackTrace
New-Object : Ausnahme beim Aufrufen von ".ctor" mit 1 Argument(en): "Input data does not represent valid 'OBJECT_IDENTIFIER' type."
In Zeile:1 Zeichen:1
Offset : 0
Message : Input data does not represent valid 'OBJECT_IDENTIFIER' type.
Data : {}
InnerException :
TargetSite : Void .ctor(SysadminsLV.Asn1Parser.Asn1Reader)
StackTrace : bei SysadminsLV.Asn1Parser.Universal.Asn1ObjectIdentifier..ctor(Asn1Reader asn)
bei SysadminsLV.PKI.Cryptography.Pkcs.SignedPkcs7`1.DecodeCms(Asn1Reader asn)
bei System.Security.Cryptography.X509CertificateRequests.X509CertificateRequest.m_initialize()
HelpLink :
Source : SysadminsLV.Asn1Parser
HResult : -2146881269
bei SysadminsLV.Asn1Parser.Universal.Asn1ObjectIdentifier..ctor(Asn1Reader asn)
bei SysadminsLV.PKI.Cryptography.Pkcs.SignedPkcs7
1.DecodeCms(Asn1Reader asn) bei System.Security.Cryptography.X509CertificateRequests.X509CertificateRequest.m_initialize()
The text was updated successfully, but these errors were encountered: