https://bugs.winehq.org/show_bug.cgi?id=54687
Bug ID: 54687 Summary: CertGetNameStringW with dwType=CERT_NAME_ATTR_TYPE and pvTypePara missing additional fallbacks Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: crypt32 Assignee: wine-bugs@winehq.org Reporter: twhitehead@gmail.com Distribution: ---
Created attachment 74198 --> https://bugs.winehq.org/attachment.cgi?id=74198 Small program to test certificates for fallback behaviour
What happens when you call CertGetNameStringW with dwType=CERT_NAME_ATTR_TYPE and pvTypePara=NULL is undocumented. Testing with Windows reveals that it returns the first existing name entry for email, CN, OU, or O. Wine only tries to return email.
This results in the LibOVR runtime dll failing to verify as reported here
https://github.com/LibreVR/Revive/issues/1571#issuecomment-1465240925
I have attached a short Windows program you can try this out for yourself. You can generate certificates for it by running
$ openssl req -x509 -newkey rsa:2048 -keyout cert.key -days 1825 -outform der -out cert.der
and then running the program and passing them to it.
https://bugs.winehq.org/show_bug.cgi?id=54687
--- Comment #1 from Tyson Whitehead twhitehead@gmail.com --- Just a note that I put together a patch for this and submitted it
https://gitlab.winehq.org/wine/wine/-/merge_requests/2403
https://bugs.winehq.org/show_bug.cgi?id=54687
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|CertGetNameStringW with |LibreVR Revive fails to run |dwType=CERT_NAME_ATTR_TYPE |(CertGetNameStringW with |and pvTypePara missing |dwType=CERT_NAME_ATTR_TYPE |additional fallbacks |and pvTypePara missing | |additional fallbacks) Version|unspecified |8.3
https://bugs.winehq.org/show_bug.cgi?id=54687
Tyson Whitehead twhitehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Tyson Whitehead twhitehead@gmail.com --- Patch was merged upstream, so closing this now.
https://bugs.winehq.org/show_bug.cgi?id=54687
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |01c69eb3023d2b85827020a8da8 | |bb43c19560450
--- Comment #3 from Hans Leidekker hans@meelstraat.net --- Fixed with 01c69eb3023d2b85827020a8da8bb43c19560450. Thanks!
https://bugs.winehq.org/show_bug.cgi?id=54687
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.5.
https://bugs.winehq.org/show_bug.cgi?id=54687
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |8.0.x
https://bugs.winehq.org/show_bug.cgi?id=54687
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|8.0.x |---
--- Comment #5 from Michael Stefaniuc mstefani@winehq.org --- Removing the 8.0.x milestone from bug fixes included in 8.0.2.