3

Is there a Golang equivalent to the following openssl command?

openssl dhparam -out dh.pem 2048

I would like to be able to generate Diffie-Hellman parameters with golang and not need to invoke openssl.

Adam
  • 47
  • 1
  • 1
    You may as well just exec.Command it in a goroutine. This process may take several minutes, perhaps even an hour on a slow system. And it's not possible to predict how long it runs. – Michael Hampton Nov 05 '18 at 13:21
  • 1
    I'm wondering if meanwhile this is possible to be done in pure Go: the use case of managing a certificate authority (e.g. for OpenVPN) without the need for forking `openssl` seems legit. – Alexander Fortin Dec 18 '21 at 03:52

0 Answers0