bjowes / cypress-ntlm-auth

Windows authentication plugin for Cypress
MIT License
54 stars 9 forks source link

Reading Windows Certs #252

Closed btsimonh closed 3 months ago

btsimonh commented 3 months ago

a quick note to highlight a repo I created some years back to solve the certificates issues in Nodejs:

https://github.com/btsimonh/node-windows-root-certs

This enables the root certs installed on Windows to be read and added to TLS in NodeJS, hence avoiding letting Node accept insecure certs globally.

I have not tested it above Node 12...
However, I see you are adept at node native modules. node-windows-root-certs uses FFI to access windows APIs, but it could be the inspiration for an update to node-win-sso or a new native module based cert updater?

br, Simon

bjowes commented 3 months ago

Hi Simon, I did some investigation into getting the certs from windows certs store some time ago, maybe your repo was one of the sources I found.

The main reasons I haven’t moved forward on this are

It would still be an improvement to access the windows certs store, but I think the value is a bit limited due to the above.

fre 29 mars 2024 kl. 09:57 skrev btsimonh @.***>:

a quick note to highlight a repo I created some years back to solve the certificates issues in Nodejs:

https://github.com/btsimonh/node-windows-root-certs

This enables the root certs installed on Windows to be read and added to TLS in NodeJS, hence avoiding letting Node accept insecure certs globally.

I have not tested it above Node 12... However, I see you are adept at node native modules. node-windows-root-certs uses FFI to access windows APIs, but it could be the inspiration for an update to node-win-sso or a new native module based cert updater?

br, Simon

— Reply to this email directly, view it on GitHub https://github.com/bjowes/cypress-ntlm-auth/issues/252, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCHR3AHJLXL2ULXWYZ42U3Y2UNHFAVCNFSM6AAAAABFOEPRGGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTIOJVGU4TQMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>