Install openssl with secp256k1 support on Centos

Phuong Nguyen asked:

I’m trying to run this on my CentOS: openssl ecparam -name secp256k1 -genkey

And I’m getting: unable to create curve (secp256k1)

I guess I need to update my openssl. But not sure how that can be done. I do a yum update openssl and it’s reporting No Packages marked for Update.

How to install openssl that support secp256k1 on my CentOS?

Update: My openssl version -a:

OpenSSL 1.0.1e-fips 11 Feb 2013
built on: Tue Apr  8 02:39:29 UTC 2014
platform: linux-x86_64
options:  bn(64,64) md2(int) rc4(16x,int) des(idx,cisc,16,int) idea(int) blowfish(idx)
OPENSSLDIR: "/etc/pki/tls"
engines:  dynamic

My answer:

Current versions of OpenSSL on CentOS 7 include secp256k1. If you are missing the curve, update OpenSSL on your system.

yum update openssl*

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.