r/programming • u/dominatrix-octopus • Jan 16 '18
Cryptography: Diffie-Hellman key exchange explained intuitively using colors
https://youtu.be/YEBfamv-_do?t=2m18s
2.5k
Upvotes
r/programming • u/dominatrix-octopus • Jan 16 '18
View all comments
Show parent comment
1
u/gurnec Jan 16 '18
This file is required if you run OpenVPN in
--tls-servermode and ignored if you run it in--secret(static key) mode.That's one reason why
--tls-severmode is generally preferred—it performs a DH exchange which affords you perfect forward secrecy (which you don't get in--secretmode).The
dh1024.pemfile distributed with OpenVPN (unchanged) from 2005 to 2014 is small enough and widely distributed enough to possibly be a target for the Logjam attack and shouldn't be used. Thedh2048.pemfile currently distributed is probably too big to be vulnerable to Logjam, but it doesn't hurt and is recommended to generate your own.