error:1012606B:elliptic curve routines:EC_POINT_set_affine_coordinates:point is not on curve

沈海煌 chain78 at 163.com
Tue Jun 2 08:25:24 UTC 2020



openssl version: openssl-1.1.1a
os:linux
Hardware platform: imx6uul
Compiler Details:arm-poky-linux-gnueabi-gcc 5.3.0 


Subject: error:1012606B:elliptic curve routines:EC_POINT_set_affine_coordinates:point is not on curve

I use https with libcurl static library on imx6ull board. It return "error:1012606B:elliptic curve routines:EC_POINT_set_affine_coordinates:point is not on curve" this error. I found this error is in openssl.
How can I to do ?


Openssl Build:
./config --prefix=/home/share/lib/openssl  no-asm no-shared
make
make install


Curl Build:
export PATH=/root/perl5/perlbrew/bin:/root/perl5/perlbrew/perls/perl-5.20.1/bin:$PATH
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/share/lib/openssl/lib/pkgconfig:/home/share/lib/zlib/lib/pkgconfig
CPPFLAGS="-I/home/share/lib/openssl/include" LDFLAGS="-L/home/share/lib/openssl/lib" ./configure --with-ssl --host=x86_64-pokysdk-linux --with-zlib --prefix=/home/share/lib/curl
make
make install


Code:
#include <stdio.h>

#include <curl/curl.h>




int main(void)

{

  CURL *curl;

  CURLcode res;




  curl_global_init(CURL_GLOBAL_DEFAULT);




  curl = curl_easy_init();

  if(curl) {

    curl_easy_setopt(curl, CURLOPT_URL, "https://www.baidu.com");




    curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);

    curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);

curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);

    res = curl_easy_perform(curl);

    if(res != CURLE_OK)

      fprintf(stderr, "curl_easy_perform() failed: %s\n",

              curl_easy_strerror(res));

    curl_easy_cleanup(curl);

  }




  curl_global_cleanup();




  return 0;

}





 





 





 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20200602/2c61ce09/attachment.html>


More information about the openssl-users mailing list