LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-19-2019, 10:01 AM   #1
bbKid
LQ Newbie
 
Registered: Jul 2018
Location: Moldova
Distribution: linuxslackware
Posts: 23

Rep: Reputation: Disabled
OpenSSL with sect233k1


Hi. An app failed with "AssertionError: Elliptic curve sect233k1 is not available on this system." I found out the reason of this error is OpenSSL wasn't enable this.
Quote:
openssl ecparam -list_curves
secp112r1 : SECG/WTLS curve over a 112 bit prime field
secp112r2 : SECG curve over a 112 bit prime field
secp128r1 : SECG curve over a 128 bit prime field
secp128r2 : SECG curve over a 128 bit prime field
secp160k1 : SECG curve over a 160 bit prime field
secp160r1 : SECG curve over a 160 bit prime field
secp160r2 : SECG/WTLS curve over a 160 bit prime field
secp192k1 : SECG curve over a 192 bit prime field
secp224k1 : SECG curve over a 224 bit prime field
secp224r1 : NIST/SECG curve over a 224 bit prime field
secp256k1 : SECG curve over a 256 bit prime field
secp384r1 : NIST/SECG curve over a 384 bit prime field
secp521r1 : NIST/SECG curve over a 521 bit prime field
prime192v1: NIST/X9.62/SECG curve over a 192 bit prime field
prime192v2: X9.62 curve over a 192 bit prime field
prime192v3: X9.62 curve over a 192 bit prime field
prime239v1: X9.62 curve over a 239 bit prime field
prime239v2: X9.62 curve over a 239 bit prime field
prime239v3: X9.62 curve over a 239 bit prime field
prime256v1: X9.62/SECG curve over a 256 bit prime field
wap-wsg-idm-ecid-wtls6: SECG/WTLS curve over a 112 bit prime field
wap-wsg-idm-ecid-wtls7: SECG/WTLS curve over a 160 bit prime field
wap-wsg-idm-ecid-wtls8: WTLS curve over a 112 bit prime field
wap-wsg-idm-ecid-wtls9: WTLS curve over a 160 bit prime field
wap-wsg-idm-ecid-wtls12: WTLS curve over a 224 bit prime field
brainpoolP160r1: RFC 5639 curve over a 160 bit prime field
brainpoolP160t1: RFC 5639 curve over a 160 bit prime field
brainpoolP192r1: RFC 5639 curve over a 192 bit prime field
brainpoolP192t1: RFC 5639 curve over a 192 bit prime field
brainpoolP224r1: RFC 5639 curve over a 224 bit prime field
brainpoolP224t1: RFC 5639 curve over a 224 bit prime field
brainpoolP256r1: RFC 5639 curve over a 256 bit prime field
brainpoolP256t1: RFC 5639 curve over a 256 bit prime field
brainpoolP320r1: RFC 5639 curve over a 320 bit prime field
brainpoolP320t1: RFC 5639 curve over a 320 bit prime field
brainpoolP384r1: RFC 5639 curve over a 384 bit prime field
brainpoolP384t1: RFC 5639 curve over a 384 bit prime field
brainpoolP512r1: RFC 5639 curve over a 512 bit prime field
brainpoolP512t1: RFC 5639 curve over a 512 bit prime field
SM2 : SM2 curve over a 256 bit prime field
So, how I can recompire OpenSSL with enabled "sect233k1"? Thanks.

Last edited by bbKid; 08-19-2019 at 10:04 AM.
 
Old 08-19-2019, 11:23 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
in my 14.2 updated system I got sect233k1 support
Code:
$ openssl ecparam -list_curves | grep sect233k1
  sect233k1 : NIST/SECG/WTLS curve over a 233 bit binary field
try applying the updates to your installation.
 
Old 08-19-2019, 11:28 AM   #3
bbKid
LQ Newbie
 
Registered: Jul 2018
Location: Moldova
Distribution: linuxslackware
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
in my 14.2 updated system I got sect233k1 support
Code:
$ openssl ecparam -list_curves | grep sect233k1
  sect233k1 : NIST/SECG/WTLS curve over a 233 bit binary field
try applying the updates to your installation.
I use Slackware64-current from 2019.08.15. There is OpenSSL haven't "sect233k1"
But sect233k1 exist in source code of OpenSSL

Last edited by bbKid; 08-19-2019 at 11:42 AM.
 
Old 08-19-2019, 01:27 PM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
I think it's because openssl in current is built with the config option
Code:
no-ec2m
that, according to the INSTALL doc
Code:
  no-ec2m
                   Don't build support for binary Elliptic Curves
I think Pat can surely clarify this better than anyone...

Last edited by ponce; 08-19-2019 at 01:46 PM.
 
Old 08-19-2019, 02:00 PM   #5
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
I believe EC2M is still covered by Certicom patents.
 
1 members found this post helpful.
Old 08-20-2019, 01:38 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
Quote:
Originally Posted by bbKid View Post
Hi. An app failed with "AssertionError: Elliptic curve sect233k1 is not available on this system." I found out the reason of this error is OpenSSL wasn't enable this.
Quote:
Originally Posted by ponce View Post
I think it's because openssl in current is built with the config option
Code:
no-ec2m
Quote:
Originally Posted by volkerdi View Post
I believe EC2M is still covered by Certicom patents.
Thanks, Pat!
Quote:
Originally Posted by bbKid View Post
So, how I can recompire OpenSSL with enabled "sect233k1"? Thanks.
then, for a personal use (not for redistributing it), I suppose you can just delete that option from the config in the SlackBuild and rebuild the package.
 
Old 08-20-2019, 03:11 AM   #7
Labinnah
Member
 
Registered: May 2014
Location: Łódź, Poland
Distribution: Slackware-current
Posts: 185

Rep: Reputation: 112Reputation: 112
Pat, can you check this? I have no idea what are that explicit patents. But, according to this: https://en.wikipedia.org/wiki/ECC_patents most patents expired in 2015-2018. And at one marked unclear, entering patent page shows that it expires just today .

Last edited by Labinnah; 08-20-2019 at 03:46 AM. Reason: - BTW
 
Old 08-21-2019, 08:28 AM   #8
bbKid
LQ Newbie
 
Registered: Jul 2018
Location: Moldova
Distribution: linuxslackware
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by volkerdi View Post
I believe EC2M is still covered by Certicom patents.
Could I use previous compiled packet of OpenSSL?

Last edited by bbKid; 08-21-2019 at 08:32 AM.
 
Old 08-21-2019, 09:31 AM   #9
Labinnah
Member
 
Registered: May 2014
Location: Łódź, Poland
Distribution: Slackware-current
Posts: 185

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by bbKid View Post
Could I use previous compiled packet of OpenSSL?
If version differs only by letter at the end, everything should work fine. Otherwise probably not.

In any case you must reconsider security risk using older releases.
 
Old 08-21-2019, 01:16 PM   #10
bbKid
LQ Newbie
 
Registered: Jul 2018
Location: Moldova
Distribution: linuxslackware
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Labinnah View Post
If version differs only by letter at the end, everything should work fine. Otherwise probably not.

In any case you must reconsider security risk using older releases.
I get it, but is some way to enable "sect233k1" with current version (1.1.1c)?
 
Old 08-21-2019, 01:32 PM   #11
Labinnah
Member
 
Registered: May 2014
Location: Łódź, Poland
Distribution: Slackware-current
Posts: 185

Rep: Reputation: 112Reputation: 112
You could download openssl slackbuild from slackware repository (i.e. ftp://ftp.slackware.com/pub/slackwar...urce/n/openssl), remove no-ec2m option from it, and rebuild package.
 
Old 08-21-2019, 01:34 PM   #12
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
I wrote it above, maybe you missed it
Quote:
Originally Posted by ponce View Post
for a personal use (not for redistributing it), I suppose you can just delete that option from the config in the SlackBuild and rebuild the package.
I'll try to gice a more detailed answer:

dowload all the components needed for building an openssl and openssl-solibs slackware packages using, for example, lftp
Code:
lftp -c mirror ftp://ftp.slackware.com/pub/slackware/slackware64-current/source/n/openssl/
enter the just downloaded openssl directory and edit openssl.SlackBuild removing this (delete the whole line 136)
Code:
 no-ec2m \
rebuild (as root) the openssl and openssl-solibs packages
Code:
BUILD=1_bbkid ./openssl.SlackBuild
upgrade the openssl and openssl-solibs packages with the ones just built
Code:
upgradepkg /tmp/openssl-1.1.1c-x86_64-1_bbkid.txz /tmp/openssl-solibs-1.1.1c-x86_64-1_bbkid.txz

Last edited by ponce; 08-21-2019 at 01:45 PM. Reason: added "(as root)"
 
1 members found this post helpful.
Old 08-21-2019, 02:21 PM   #13
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Quote:
Originally Posted by Labinnah View Post
Pat, can you check this? I have no idea what are that explicit patents. But, according to this: https://en.wikipedia.org/wiki/ECC_patents most patents expired in 2015-2018. And at one marked unclear, entering patent page shows that it expires just today .
Interesting! But I think I'll still wait for IBM/Red Hat's pack of skilled patent attorneys to take the lead on this one.
 
1 members found this post helpful.
Old 08-21-2019, 02:28 PM   #14
bbKid
LQ Newbie
 
Registered: Jul 2018
Location: Moldova
Distribution: linuxslackware
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
I wrote it above, maybe you missed it


I'll try to gice a more detailed answer:

dowload all the components needed for building an openssl and openssl-solibs slackware packages using, for example, lftp
Code:
lftp -c mirror ftp://ftp.slackware.com/pub/slackware/slackware64-current/source/n/openssl/
enter the just downloaded openssl directory and edit openssl.SlackBuild removing this (delete the whole line 136)
Code:
 no-ec2m \
rebuild (as root) the openssl and openssl-solibs packages
Code:
BUILD=1_bbkid ./openssl.SlackBuild
upgrade the openssl and openssl-solibs packages with the ones just built
Code:
upgradepkg /tmp/openssl-1.1.1c-x86_64-1_bbkid.txz /tmp/openssl-solibs-1.1.1c-x86_64-1_bbkid.txz
Thanks a lot, this works for me.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] new openssl 1.1.0 - broken compatibility with openssl 1.0.1 FranekW Linux - Newbie 2 06-26-2018 10:49 AM
Does recursive mutex lock in openssl will affect other openssl users in same system? T.Selvan Linux - Networking 3 02-09-2016 12:59 AM
openssl: any simple examples no how to use openssl to do some decryption? eantoranz Programming 7 07-26-2012 07:57 PM
install of openssl-0.9.8b-8.3.el5 conflicts with file from package openssl-0.9.8b-8.3 jsaravana87 Linux - Server 1 09-26-2011 01:02 PM
oops openssl-0.9.8e over openssl-0.9.8d bad install now 2 copies? rcorkum Slackware 4 06-29-2007 01:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration