Bug 390440 - The SSL certificate is invalid
Summary: The SSL certificate is invalid
Status: RESOLVED FIXED
Alias: None
Product: rust-qt-binding-generator
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Jos van den Oever
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-14 09:27 UTC by Kaare Rasmussen
Modified: 2018-04-30 14:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kaare Rasmussen 2018-02-14 09:27:42 UTC
I tried to

./docker/docker-bash-session.sh

and then (in docker)

cmake .
make

Output of cmake .

-- Could not set up the appstream test. appstreamcli is missing.
-- Could NOT find Git (missing: GIT_EXECUTABLE) 
-- The following OPTIONAL packages have been found:
                                                                                                                                                                                                                                                                               
 * ECM (required version >= 1.0.0)                                                                                                                                                                                                                                             
 * Qt5QuickControls2 (required version == 5.9.1)                                                                                                                                                                                                                               
 * Qt5Charts (required version == 5.9.1)                                                                                                                                                                                                                                       
 * KF5Kirigami2                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                               
-- The following REQUIRED packages have been found:                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                               
 * Cargo, The Rust package manager, <https://github.com/rust-lang/cargo/>                                                                                                                                                                                                      
 * Rust                                                                                                                                                                                                                                                                        
 * Threads                                                                                                                                                                                                                                                                     
 * Qt5Core                                                                                                                                                                                                                                                                     
 * Qt5Test                                                                                                                                                                                                                                                                     
 * Qt5Gui (required version >= 5.9.1)                                                                                                                                                                                                                                          
 * Qt5Widgets                                                                                                                                                                                                                                                                  
 * Qt5Svg                                                                                                                                                                                                                                                                      
 * Qt5Network (required version >= 5.9.1)                                                                                                                                                                                                                                      
 * Qt5Qml (required version >= 5.9.1)                                                                                                                                                                                                                                          
 * Qt5Quick                                                                                                                                                                                                                                                                    
 * Qt5 (required version >= 5.6.0)                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                               
-- The following OPTIONAL packages have not been found:                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                               
 * Git                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                               
-- Configuring done                                                                                                                                                                                                                                                            
-- Generating done                                                                                                                                                                                                                                                             
-- Build files have been written to: /home/neon/rust_qt_binding_generator                                                                                                                                                                                                      

Output of make

  1%] Automatic MOC and UIC for target rust_qt_binding_generator
Generating MOC predefs moc_predefs.h
[  1%] Built target rust_qt_binding_generator_autogen
[ 12%] Built target rust_qt_binding_generator
[ 13%] Generating rust_functions/src/interface.rs, test_functions_rust.h
[ 15%] Automatic MOC and UIC for target test_functions
Generating MOC predefs moc_predefs.h
[ 15%] Built target test_functions_autogen
[ 16%] Generating rust_functions/src/interface.rs, test_functions_rust.h
[ 17%] Generating rust_functions/target/release/librust.a
    Updating registry `https://github.com/rust-lang/crates.io-index`
error: failed to load source for a dependency on `libc`

Caused by:
  Unable to update registry https://github.com/rust-lang/crates.io-index

Caused by:
  failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  [16/-17] The SSL certificate is invalid
tests/CMakeFiles/test_rust_functions.dir/build.make:62: recipe for target 'tests/rust_functions/target/release/librust.a' failed
make[2]: *** [tests/rust_functions/target/release/librust.a] Error 101
CMakeFiles/Makefile2:337: recipe for target 'tests/CMakeFiles/test_rust_functions.dir/all' failed
make[1]: *** [tests/CMakeFiles/test_rust_functions.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2


I had it build the rust-qt-binding-generator> one time, but most of the time, the SSL certificate is wrong.

This also happened when I succeded building the binary, and tried to build the qt_quick template.
Comment 1 Kaare Rasmussen 2018-03-10 07:16:40 UTC
Still the same. I'd really like to try the Qt-rust bindings, but I can't even make the binary with this error.

No idea what I could try?
Comment 2 Jos van den Oever 2018-03-10 22:34:34 UTC
My guess is that there is an outdated certificate in the base docker image. Removing the cached docker images could help.

You can try to remove the cached image and try again.

  docker rmi rust_qt_binding_generator_dev
Comment 3 Jos van den Oever 2018-04-30 14:45:01 UTC
Git commit d3134229ae60d8981e1ff5fbb766048a6d0d853a by Jos van den Oever.
Committed on 30/04/2018 at 14:44.
Pushed by vandenoever into branch 'master'.

Add package ca-certificates

M  +1    -0    docker/Dockerfile

https://commits.kde.org/rust-qt-binding-generator/d3134229ae60d8981e1ff5fbb766048a6d0d853a
Comment 4 Jos van den Oever 2018-04-30 14:45:38 UTC
The root certificates were missing in the docker image.