简体   繁体   中英

Preshared keys (TLS-PSK-WITH-AES-256-CBC-SHA) with node.js server

I'm trying to implement a server that can field a request from a very constrained client that wants to handshake using pre-shared keys (PSK) using the cryptosuite TLS-PSK-WITH-AES-256 with a node.js server. I can't seem to find any samples or documentation that talks about how you'd set this up. Is this cryptosuite supported by node.js? If so, how does one go about configuring the options for the https server to accept these connections and verify them?

Although tls.getCiphers() claims to support psk-aes256-cbc-sha , it appears that support is not actually implemented .

Someone did submit a pull request implementing PSK several years ago, but it apparently went stale and was never merged.

To get PSK working, you'll have to manually apply the changes from the old PR to the current version of node and create a custom build.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM