Tthis code is not needed anymore. OpenSSL will do it automatically.