[openssl-users] File signing/encrypting upgrade from 1.0.2 to 1.1.0

Jan Kohnert nospam001-lists at jan-kohnert.de
Tue Mar 27 22:40:33 UTC 2018


Hi,

Am Tue, 27 Mar 2018 18:24:25 +0000
schrieb Sergio NNX <sfhacker at hotmail.com>:

> > The code comiles just fine  
> 
> Unfortunately, it does NOT compile fine on my system (and I guess the
> same occurs on several others!)

Good, updated the zip file, just tested on Linux here (the local
Windows maschine just installs VS for testing), giving the following
(correct output file format here):

jankoh at kohni-mobil ~/projects/te $ unzip TestCrypt.zip 
Archive:  TestCrypt.zip
   creating: TestCrypt/
  inflating: TestCrypt/CMakeLists.txt  
  inflating: TestCrypt/local.cert    
  inflating: TestCrypt/local.key     
   creating: TestCrypt/src/
  inflating: TestCrypt/src/app.cpp   
   creating: TestCrypt/ssl/
  inflating: TestCrypt/ssl/test.conf  
 extracting: TestCrypt/testfile.txt  
jankoh at kohni-mobil ~/projects/te $ ls
TestCrypt  TestCrypt.zip
jankoh at kohni-mobil ~/projects/te $ cd TestCrypt
jankoh at kohni-mobil ~/projects/te/TestCrypt $ la
insgesamt 16K
   0 drwxr-xr-x 4 jankoh users   99 28. Mär 00:25 .
   0 drwxr-xr-x 3 jankoh users   42 28. Mär 00:29 ..
4,0K -rw-r--r-- 1 jankoh users  849 23. Mär 19:19 CMakeLists.txt
4,0K -rw-r--r-- 1 jankoh users 1,1K 23. Mär 12:08 local.cert
4,0K -rw-r--r-- 1 jankoh users 1,7K 23. Mär 12:04 local.key
   0 drwxr-xr-x 2 jankoh users   20 28. Mär 00:22 src
   0 drwxr-xr-x 2 jankoh users   22 23. Mär 12:19 ssl
4,0K -rw-r--r-- 1 jankoh users   27 23. Mär 10:48 testfile.txt
jankoh at kohni-mobil ~/projects/te/TestCrypt $ mkdir build
jankoh at kohni-mobil ~/projects/te/TestCrypt $ cd build/
jankoh at kohni-mobil ~/projects/te/TestCrypt/build $ cmake ..
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenSSL: /usr/lib/libcrypto.so (found suitable exact version
"1.1.0g") -- Configuring done
-- Generating done
-- Build files have been written
to: /home/jankoh/projects/te/TestCrypt/build jankoh at kohni-mobil
~/projects/te/TestCrypt/build $ make /usr/bin/cmake
-H/home/jankoh/projects/te/TestCrypt
-B/home/jankoh/projects/te/TestCrypt/build --check-build-system
CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E
cmake_progress_start /home/jankoh/projects/te/TestCrypt/build/CMakeFiles /home/jankoh/projects/te/TestCrypt/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all make[1]: Verzeichnis
„/home/jankoh/projects/te/TestCrypt/build“ wird betreten make -f
CMakeFiles/TestCrypt.dir/build.make CMakeFiles/TestCrypt.dir/depend
make[2]: Verzeichnis „/home/jankoh/projects/te/TestCrypt/build“ wird
betreten cd /home/jankoh/projects/te/TestCrypt/build && /usr/bin/cmake
-E cmake_depends "Unix
Makefiles" /home/jankoh/projects/te/TestCrypt /home/jankoh/projects/te/TestCrypt /home/jankoh/projects/te/TestCrypt/build /home/jankoh/projects/te/TestCrypt/build /home/jankoh/projects/te/TestCrypt/build/CMakeFiles/TestCrypt.dir/DependInfo.cmake
--color= Scanning dependencies of target TestCrypt make[2]: Verzeichnis
„/home/jankoh/projects/te/TestCrypt/build“ wird verlassen make -f
CMakeFiles/TestCrypt.dir/build.make CMakeFiles/TestCrypt.dir/build
make[2]: Verzeichnis „/home/jankoh/projects/te/TestCrypt/build“ wird
betreten [ 50%] Building CXX object
CMakeFiles/TestCrypt.dir/src/app.cpp.o /usr/bin/c++     -o
CMakeFiles/TestCrypt.dir/src/app.cpp.o
-c /home/jankoh/projects/te/TestCrypt/src/app.cpp [100%] Linking CXX
executable TestCrypt /usr/bin/cmake -E cmake_link_script
CMakeFiles/TestCrypt.dir/link.txt --verbose=1 /usr/bin/c++
CMakeFiles/TestCrypt.dir/src/app.cpp.o  -o
TestCrypt /usr/lib/libcrypto.so make[2]: Verzeichnis
„/home/jankoh/projects/te/TestCrypt/build“ wird verlassen [100%] Built
target TestCrypt make[1]: Verzeichnis
„/home/jankoh/projects/te/TestCrypt/build“ wird
verlassen /usr/bin/cmake -E
cmake_progress_start /home/jankoh/projects/te/TestCrypt/build/CMakeFiles
0 
jankoh at kohni-mobil ~/projects/te/TestCrypt/build $ cp ../testfile.txt . 
jankoh at kohni-mobil ~/projects/te/TestCrypt/build $ cp ../local.* .
jankoh at kohni-mobil ~/projects/te/TestCrypt/build $ ./TestCrypt
jankoh at kohni-mobil ~/projects/te/TestCrypt/build $ openssl smime
-decrypt -inform DER -in testfile.crypt -inkey local.key -out
testfile.sig 
jankoh at kohni-mobil ~/projects/te/TestCrypt/build $ openssl
smime -verify -inform DER -in testfile.sig -CAfile local.cert Kiss me,
I'm a test file. Verification successful 
jankoh at kohni-mobil ~/projects/te/TestCrypt/build $ 

I removed that applink-thing, too...


Best regards Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestCrypt.zip
Type: application/zip
Size: 5465 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20180328/4687aa76/attachment.zip>


More information about the openssl-users mailing list