use params to specify openssl path

dh generation fails on openbsd because openssl is on sbin not bin.