Skip to content
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

Win10x64 fails to create self-signed certificate #5784

Closed
compgumby opened this issue May 22, 2020 · 2 comments
Closed

Win10x64 fails to create self-signed certificate #5784

compgumby opened this issue May 22, 2020 · 2 comments

Comments

@compgumby
Copy link

Exception occurs at ln 1975 of tls-sspi.c in libcups2 when attempting to connect to an IPP print server via https. The call to CertCreateSelfSignCertificate throws an access violation exception in ntdll.dll reading location 0xFF...F. Built on VS2017 and stepped through the code while attempting to use ipptool for a print-job function.

At this point, the args are:

| Name  | Value | Type
| ----- | --...
| hProv | 5469504 | unsigned __int64
| sib   | {cbData=3435973836 pbData=0xcccccccccccccccc <Error reading characters of string.> } | _CRYPTOAPI_BLOB
| &sib  | 0x0000000000144938 {cbData=3435973836 pbData=0xcccccccccccccccc <Error reading characters of string.> } | _CRYPTOAPI_BLOB *
| kpi   | {pwszContainerName=0x00007ffc3cc6dc80 L"ClientContainer" pwszProvName=0x00007ffc3cc6e5e0 L"Microsoft Base Cryptographic Provider v1.0" ...} | _CRYPT_KEY_PROV_INFO
| &kpi  | 0x0000000000144a18 {pwszContainerName=0x00007ffc3cc6dc80 L"ClientContainer" pwszProvName=0x00007ffc3cc6e5e0 L"Microsoft Base Cryptographic Provider v1.0" ...} | _CRYPT_KEY_PROV_INFO *
| et    | {wYear=2030 wMonth=5 wDayOfWeek=5 ...} | _SYSTEMTIME
| &et   | 0x0000000000144a68 {wYear=2030 wMonth=5 wDayOfWeek=5 ...} | _SYSTEMTIME *
| exts  | {cExtension=0 rgExtension=0x0000000000000000 <NULL> } | _CERT_EXTENSIONS
| &exts | 0x0000000000144a98 {cExtension=0 rgExtension=0x0000000000000000 <NULL> } | _CERT_EXTENSIONS *

It's been a while since I played in C so I'm not sure if there's something very obvious I should be catching. Anyway - this is an issue for me so I'm pointing it out. Might be an issue for somebody else too.

@davee1
Copy link

davee1 commented Nov 3, 2020

I am getting a similar error

@michaelrsweet
Copy link
Collaborator

Fixed in OpenPrinting CUPS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants