## About GmSSL
#Compile under LINUX -d stands for the debug version
. / config no-shared -d
make
make install
Generate private key
gmssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:sm2p256v1 -pkeyopt ec_param_enc:named_curve -out gm_privatekey.pem
Generate certificate
gmssl req -new -x509 -key gm_privatekey.pem -out gm_cert.pem
#Compile the static library to increase the parameter no-shared #perl choose the open source Strawberry, not the commercial version of ActivePerl
#Windows 32-bit compile
perl Configure VC-WIN32 no-shared
nmake
#64th place under Windows Compiled
perl Configure VC-WIN64A no-shared
nmake
如果执行 perl Configure VC-WIN64A no-shared, 报错:
"glob" is not exported by the File::Glob module
Can't continue after import errors at Configure line 18.
BEGIN failed--compilation aborted at Configure line 18.
Solution:
1. Modify line 339 of the test/build.info file:
use File::Spec::Functions;
use File::Basename;
#use if $^O ne "VMS",'File::Glob' => qw/glob/; remove this line
use File::Glob':glob '; add this line
2. Modify the 18th line of the Configure file:
require 5.10.0;
use strict;
use File::Basename;
use File::Spec::Functions qw/:DEFAULT abs2rel rel2abs/;
use File::Path qw/mkpath/;
#use if $^O ne "VMS", 'File::Glob' => qw/glob/; 去掉这行
use File::Glob ':glob'; 增加这行
Then execute nmake.