Installing XCA

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
Pippin
Level 3
Level 3
Posts: 146
Joined: Wed Dec 13, 2017 11:14 am
Location: NL/DE/TH

Installing XCA

Post by Pippin » Mon Mar 05, 2018 2:57 pm

With Windows I used to use XCA to generate and maintain OpenVPN cerificates.
https://hohnstaedt.de/xca/index.php
https://github.com/chris2511/xca/

How would I get XCA installed in Linux Mint?
"One good thing about music, when it hits you feel no pain.”
B.M.

User avatar
phd21
Level 16
Level 16
Posts: 6780
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Installing XCA

Post by phd21 » Mon Mar 05, 2018 4:03 pm

Hi Pippin,

It would help to know more about your system setup. If you run "inxi -Fxzd" from the console terminal prompt, highlight the results, copy and paste them back here, that should provide enough information.

"xca" v1.3.2 is already in the "Synaptic Package Manager (SPM)".
To install "xca" from the console terminal:

Code: Select all

sudo apt install xca
All major linux distributions contain an XCA package. You probably want to use your package manager to install XCA.
Download xca v1.4.1 for Linux
http://hohnstaedt.de/xca/index.php/download

Why do you need to generate your own OpenVPN certificates?

Hope this helps ...
Phd21: Mint KDE 17.3 & 18.3, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

Pippin
Level 3
Level 3
Posts: 146
Joined: Wed Dec 13, 2017 11:14 am
Location: NL/DE/TH

Re: Installing XCA

Post by Pippin » Mon Mar 05, 2018 7:42 pm

Hi,

Thanks for the reply phd21 but I would like to have the latest installed with GUI if possible.

I run three OpenVPN servers in different locations.
Having my own root CA`s is a must, in my opinion it should be for everyone running their own server(s).
Download xca v1.4.1 for Linux
Yes, I have it wget in /root/xca and untar in /root/xca/xca-1.4.1
I`ll go ahead and do

Code: Select all

./configure && make && make install
and see what happens. Just hope not needing to spend time on searching how to clean up the mess if it goes wrong :)

Code: Select all

# inxi -Fxzd
System:    Host: Laptop-1 Kernel: 4.13.0-36-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.6.7 (Gtk 3.18.9-1ubuntu3.3) Distro: Linux Mint 18.3 Sylvia
Machine:   System: Packard Bell (portable) product: EasyNote TK85 v: V1.30
           Mobo: Packard Bell model: EasyNote TK85 v: V1.30 Bios: Packard Bell v: V1.30 date: 08/13/2012
CPU:       Dual core Intel Core i5 M 450 (-HT-MCP-) cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9575
           clock speeds: max: 2400 MHz 1: 1333 MHz 2: 1866 MHz 3: 1333 MHz 4: 1199 MHz
Graphics:  Card: Intel Core Processor Integrated Graphics Controller bus-ID: 00:02.0
           Display Server: X.org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
           tty size: 150x45 Advanced Data: N/A for root
Audio:     Card Intel 5 Series/3400 Series High Definition Audio driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.13.0-36-generic
Network:   Card-1: Broadcom NetLink BCM57780 Gigabit Ethernet PCIe driver: tg3 v: 3.137 bus-ID: 01:00.0
           IF: enp1s0 state: down mac: <filter>
           Card-2: Qualcomm Atheros AR9287 Wireless Network Adapter (PCI-Express) driver: ath9k bus-ID: 02:00.0
           IF: wlp2s0 state: down mac: <filter>
Drives:    HDD Total Size: 128.0GB (21.7% used) ID-1: /dev/sdb model: TS128GSSD370 size: 128.0GB temp: 28C
Partition: ID-1: / size: 20G used: 7.4G (40%) fs: ext4 dev: /dev/sdb1
           ID-2: /home size: 89G used: 15G (18%) fs: ext4 dev: /dev/sdb2
           ID-3: swap-1 size: 4.29GB used: 0.00GB (0%) fs: swap dev: /dev/sdb3
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 40.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 183 Uptime: 00:46 Memory: 950.9/2673.7MB Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35 
I fail to see why ^^^^^ is necessary in this case, but it`s ok ;)
"One good thing about music, when it hits you feel no pain.”
B.M.

Pippin
Level 3
Level 3
Posts: 146
Joined: Wed Dec 13, 2017 11:14 am
Location: NL/DE/TH

Re: Installing XCA

Post by Pippin » Mon Mar 05, 2018 7:50 pm

That was a fail, don`t you laugh ;)
It seems I need some tools first, I`ll look into that tomorrow.
In the mean time feel free to tell me.

Code: Select all

# cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by X Certificate and Key management configure 1.4.1, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = Laptop-1
uname -m = x86_64
uname -r = 4.13.0-36-generic
uname -s = Linux
uname -v = #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /snap/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2093:      ***************************************************
configure:2095:      *   X Certificate and Key management 1.4.1
configure:2097:      ***************************************************
configure:2158: checking for g++
configure:2188: result: no
configure:2158: checking for c++
configure:2188: result: no
configure:2158: checking for gpp
configure:2188: result: no
configure:2158: checking for aCC
configure:2188: result: no
configure:2158: checking for CC
configure:2188: result: no
configure:2158: checking for cxx
configure:2188: result: no
configure:2158: checking for cc++
configure:2188: result: no
configure:2158: checking for cl.exe
configure:2188: result: no
configure:2158: checking for FCC
configure:2188: result: no
configure:2158: checking for KCC
configure:2188: result: no
configure:2158: checking for RCC
configure:2188: result: no
configure:2158: checking for xlC_r
configure:2188: result: no
configure:2158: checking for xlC
configure:2188: result: no
configure:2212: checking for C++ compiler version
configure:2221: g++ --version >&5
./configure: line 2223: g++: command not found
configure:2232: $? = 127
configure:2221: g++ -v >&5
./configure: line 2223: g++: command not found
configure:2232: $? = 127
configure:2221: g++ -V >&5
./configure: line 2223: g++: command not found
configure:2232: $? = 127
configure:2221: g++ -qversion >&5
./configure: line 2223: g++: command not found
configure:2232: $? = 127
configure:2252: checking whether the C++ compiler works
configure:2274: g++    conftest.cpp  >&5
./configure: line 2276: g++: command not found
configure:2278: $? = 127
configure:2316: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "X Certificate and Key management"
| #define PACKAGE_TARNAME "xca"
| #define PACKAGE_VERSION "1.4.1"
| #define PACKAGE_STRING "X Certificate and Key management 1.4.1"
| #define PACKAGE_BUGREPORT "christian@hohnstaedt.de"
| #define PACKAGE_URL "http://xca.hohnstaedt.de"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2321: error: in `/root/xca/xca-1.4.1':
configure:2323: error: C++ compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_OpenSSL_CFLAGS_set=
ac_cv_env_OpenSSL_CFLAGS_value=
ac_cv_env_OpenSSL_LIBS_set=
ac_cv_env_OpenSSL_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_Qt4_CFLAGS_set=
ac_cv_env_Qt4_CFLAGS_value=
ac_cv_env_Qt4_LIBS_set=
ac_cv_env_Qt4_LIBS_value=
ac_cv_env_Qt5_CFLAGS_set=
ac_cv_env_Qt5_CFLAGS_value=
ac_cv_env_Qt5_LIBS_set=
ac_cv_env_Qt5_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=

## ----------------- ##
## Output variables. ##
## ----------------- ##

CPPFLAGS=''
CXX='g++'
CXXCPP=''
CXXFLAGS=''
DARWIN=''
DEFS=''
DOCTOOL=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_DOC=''
EXEEXT=''
GREP=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MACDEPLOYQT=''
OBJEXT=''
OpenSSL_CFLAGS=''
OpenSSL_LIBS=''
PACKAGE_BUGREPORT='christian@hohnstaedt.de'
PACKAGE_NAME='X Certificate and Key management'
PACKAGE_STRING='X Certificate and Key management 1.4.1'
PACKAGE_TARNAME='xca'
PACKAGE_URL='http://xca.hohnstaedt.de'
PACKAGE_VERSION='1.4.1'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
QT_CFLAGS=''
QT_LIBS=''
QT_LRELEASE=''
QT_LRELEASEQT=''
QT_MOC=''
QT_RCC=''
QT_RCCQT=''
QT_UIC=''
Qt4_CFLAGS=''
Qt4_LIBS=''
Qt5_CFLAGS=''
Qt5_LIBS=''
SHELL='/bin/bash'
STRIP=''
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "X Certificate and Key management"
#define PACKAGE_TARNAME "xca"
#define PACKAGE_VERSION "1.4.1"
#define PACKAGE_STRING "X Certificate and Key management 1.4.1"
#define PACKAGE_BUGREPORT "christian@hohnstaedt.de"
#define PACKAGE_URL "http://xca.hohnstaedt.de"

configure: exit 77
Thanks.
"One good thing about music, when it hits you feel no pain.”
B.M.

User avatar
phd21
Level 16
Level 16
Posts: 6780
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Installing XCA

Post by phd21 » Mon Mar 05, 2018 10:19 pm

Hi Pippin,

You are very welcome...

I almost always ask for the results of the console terminal command "inxi -Fxzd" to make sure there are not other issues that could affect your system and what your post is about. I do not see anything wrong with the results of the "inxi -Fxzd" console terminal command, so that is a good thing.

I do not see a big difference between the "xca" version available in the "Synaptic Package Manager (SPM)" and their newer one that has to be compiled from source code.

Although I have not setup openVPN servers myself yet, I have read about it. Don't you create the server and user certificates from the installed openVPN server during its installation and setup process along with the remote user's "server.ovpn" configuration file and then provide those to remote users?

I have never heard of or used "xca" until your post. I do not know how to use it yet. Apparently, I have to create a new "xca" database to store everything.

For creating and managing keys and certificates other than openVPN, I use GPA, Passwords and Keys (Seahorse), KGpg, Kleopatra (kde), the console terminal prompt (gnupg is already installed), gak (APT key manager), etc...

I do update my openVPN software using their repository to the newer ones rather than use the default that the Mint repositories provide, see instructions in link just below. Some newer VPN providers require at least openVPN v2.4. In fact, yesterday there was an update to openVPN to v2.4.5.
viewtopic.php?f=157&t=242583&hilit=openvpn

Whenever I add a VPN network connection, I get the configuration and certificate and key files from the VPN provider which should also be part of their server's .ovpn configuration file.

As for compiling "xca":

To compile anything, you first need to have installed the basics

Code: Select all

sudo apt install build-essential cmake git wget curl
Then, of course, the software developer(s) may have extra dependencies (libraries and packages) that are required to be installed before you can compile their source code. If you are lucky, they provide good instructions for this.

I was able to successfully compile the newer XCA from their downloaded Linux archive file on my Linux Mint KDE 18.2 system which took longer than I expected. According to their "install" file's instructions, download their archive file (xca-1.4.1.tar.gz), extract it, get into that folder "xca-1.4.1", select open terminal here, from the terminal prompt, type in or copy and paste each line below one by one:
Requirements:
==============
for compilation, you need the following Libraries:
QT >= 4.6.0 from http://www.troll.no
OpenSSL >= 0.9.8 from http://www.openssl.org
GNU C++ compiler >= 3.1.0
GNU make
From the XCA install file instructions

Code: Select all

./bootstrap

Code: Select all

mkdir build

Code: Select all

cd build

Code: Select all

../configure

Code: Select all

make -j10

Code: Select all

sudo make install
Hope this helps ...
xca_1.jpg
XCA
Phd21: Mint KDE 17.3 & 18.3, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

Pippin
Level 3
Level 3
Posts: 146
Joined: Wed Dec 13, 2017 11:14 am
Location: NL/DE/TH

Re: Installing XCA

Post by Pippin » Tue Mar 06, 2018 8:28 am

Hi,
Don't you create the server and user certificates from the installed openVPN server during its installation and setup process
No, the most used method is to install OpenVPN and then use easy-rsa to generate the CA, server and clients certificates/keys.
That`s all done on command line.
But I like to have a GUI like XCA, I`m used to it.
Edit:
I speak about the community version, not the OpenVPN Access Server.
along with the remote user's "server.ovpn" configuration file and then provide those to remote users?
I write those by hand.
I have never heard of or used "xca" until your post. I do not know how to use it yet. Apparently, I have to create a new "xca" database to store everything.
Yes, everything is stored in a password protected database. To make life easy I made templates specifically for use with OpenVPN.
I do update my openVPN software using their repository to the newer ones rather than use the default that the Mint repositories provide
So do I but do not use Network Manager, it`s a complicated beast ;)
I do have a provider but hardly use them because have my own servers.
To compile anything, you first need to have installed the basics
That`s what I was missing, will try it later today.

Thanks.
"One good thing about music, when it hits you feel no pain.”
B.M.

Pippin
Level 3
Level 3
Posts: 146
Joined: Wed Dec 13, 2017 11:14 am
Location: NL/DE/TH

Re: Installing XCA

Post by Pippin » Tue Mar 06, 2018 1:28 pm

Hi again,

Installed qt5-default (5.5.1) through Synaptic Package Manager.
OpenSSL (1.0.2g) is already installed.

Doing ../configure shows:

Code: Select all

build # ../configure
configure:      ***************************************************
configure:      *   X Certificate and Key management 1.4.1
configure:      ***************************************************
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for strip... strip
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OpenSSL... no
configure: WARNING: OpenSSL pkg-config failed, using fallback defaults ( -lcrypto )
checking for Qt5... yes
checking for lrelease-qt5... no
checking for lrelease... /usr/bin/lrelease
checking for rcc-qt5... no
checking for rcc... /usr/lib/x86_64-linux-gnu/qt5/bin/rcc
checking for lt_dlopen in -lltdl... yes
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ltdl.h usability... yes
checking ltdl.h presence... yes
checking for ltdl.h... yes
Unable to execute a freshly compiled application, maybe you have to adjust your LD_LIBRARY_PATH or /etc/ld.so.conf
checking for GNU make... make
configure: A usable 'make' executable was found in /usr/bin/make
checking for linuxdoc... no
checking for sgml2html... no
configure: WARNING: 'linuxdoc' or 'sgml2html' not found, using pre-compiled documentation
configure: creating ./config.status
config.status: creating Local.mak
config.status: creating local.h
config.status: linking ../Makefile to Makefile
Looks like it does not find OpenSSL.
The search continues...

Thanks.
"One good thing about music, when it hits you feel no pain.”
B.M.

User avatar
phd21
Level 16
Level 16
Posts: 6780
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Installing XCA

Post by phd21 » Tue Mar 06, 2018 1:57 pm

Hi Pippin,

You are welcome...

To satisfy the "xca" compiling dependencies regarding "ssl", Go into the "Synaptic Package Manager (SPM)", and install or make sure these are installed:

openssl
libnss3 and libnss3-dev

Not sure if you need SSH installed either, but I have it installed. This "xca" application covers a lot of certificate and keys options, so I would not be surprised if other "crypto" libraries and their dev packages might need to be installed. I install, test, and occasionally compile a lot of software for helping others in this forum and for myself, so I already had the dependencies installed.

If you would like my "xca" folder where I compiled it, which has the newer compiled "xca" version for 64-bit in its "build" subfolder, just click the link below. You would just have to run "sudo make install" from within the "xca" 's "build' subfolder on your system to install it. You can test it by double-clicking the xca executable program file in the build subfolder. On my system this is the "path" I used (/home/user69/Downloads/xca-1.4.1/build/), but you can extract it wherever you want.

Download link to my "xca" folder with a compiled version in an "xca-1.4.1_1.tar.gz" archive file.
https://my.pcloud.com/publink/show?code ... d5Hm38Otr7


Hope this helps ...
xca_compiled1.jpg
xca compiled
Phd21: Mint KDE 17.3 & 18.3, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

Pippin
Level 3
Level 3
Posts: 146
Joined: Wed Dec 13, 2017 11:14 am
Location: NL/DE/TH

Re: Installing XCA

Post by Pippin » Tue Mar 06, 2018 2:40 pm

Hi,

Thanks so far.

OpenSSL and libnns3 were already installed, installing libnss3-dev did not help:

Code: Select all

# ../configure
configure:      ***************************************************
configure:      *   X Certificate and Key management 1.4.1
configure:      ***************************************************
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for strip... strip
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OpenSSL... no
configure: WARNING: OpenSSL pkg-config failed, using fallback defaults ( -lcrypto )
checking for Qt5... yes
checking for lrelease-qt5... no
checking for lrelease... /usr/bin/lrelease
checking for rcc-qt5... no
checking for rcc... /usr/lib/x86_64-linux-gnu/qt5/bin/rcc
checking for lt_dlopen in -lltdl... yes
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ltdl.h usability... yes
checking ltdl.h presence... yes
checking for ltdl.h... yes
Unable to execute a freshly compiled application, maybe you have to adjust your LD_LIBRARY_PATH or /etc/ld.so.conf
checking for GNU make... make
configure: A usable 'make' executable was found in /usr/bin/make
checking for linuxdoc... no
checking for sgml2html... no
configure: WARNING: 'linuxdoc' or 'sgml2html' not found, using pre-compiled documentation
configure: creating ./config.status
config.status: creating Local.mak
config.status: creating local.h
config.status: local.h is unchanged
config.status: linking ../Makefile to Makefile

Code: Select all

checking for OpenSSL... no
configure: WARNING: OpenSSL pkg-config failed, using fallback defaults ( -lcrypto )

Code: Select all

# cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
...
...
configure:2893: checking for OpenSSL
configure:2900: $PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.8"
Package libcrypto was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcrypto.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcrypto' found
configure:2903: $? = 1
configure:2917: $PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.8"
Package libcrypto was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcrypto.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcrypto' found
configure:2920: $? = 1
configure:2934: result: no
No package 'libcrypto' found
configure:2952: WARNING: OpenSSL pkg-config failed, using fallback defaults ( -lcrypto )
...
...
Would it be possible to point to OpenSSL for configure?
If you would like my "xca" folder where I compiled it, which has the newer compiled "xca" version for 64-bit in its "build" subfolder, just let me know. You would just have to run "sudo make install" on your system to install it.
That`s a nice offer, will PM you later but I would still like to find out how to get this to work.

Thanks.
"One good thing about music, when it hits you feel no pain.”
B.M.

User avatar
thx-1138
Level 6
Level 6
Posts: 1107
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Installing XCA

Post by thx-1138 » Tue Mar 06, 2018 3:26 pm

...install libssl-dev & linuxdoc-tools, and also read this before installing.

Pippin
Level 3
Level 3
Posts: 146
Joined: Wed Dec 13, 2017 11:14 am
Location: NL/DE/TH

Re: Installing XCA

Post by Pippin » Tue Mar 06, 2018 3:41 pm

Hi thx-1138,

Thanks will try that too.
You can test it by double-clicking the xca executable program file in the build subfolder.
Just tried that but nothing happens, so I did on command line instead:

Code: Select all

# gksudo /root/xca/xca-1.4.1_1_phd21/xca-1.4.1/build/xca
/root/xca/xca-1.4.1_1_phd21/xca-1.4.1/build/xca: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: version `Qt_5' not found (required by /root/xca/xca-1.4.1_1_phd21/xca-1.4.1/build/xca)
/root/xca/xca-1.4.1_1_phd21/xca-1.4.1/build/xca: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.6' not found (required by /root/xca/xca-1.4.1_1_phd21/xca-1.4.1/build/xca)
/root/xca/xca-1.4.1_1_phd21/xca-1.4.1/build/xca: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5' not found (required by /root/xca/xca-1.4.1_1_phd21/xca-1.4.1/build/xca)
/root/xca/xca-1.4.1_1_phd21/xca-1.4.1/build/xca: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: version `Qt_5' not found (required by /root/xca/xca-1.4.1_1_phd21/xca-1.4.1/build/xca)
Tomorrow another day...

Thanks.
"One good thing about music, when it hits you feel no pain.”
B.M.

User avatar
phd21
Level 16
Level 16
Posts: 6780
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Installing XCA

Post by phd21 » Tue Mar 06, 2018 4:33 pm

Hi Pippin,

You may have to check and change the permissions to the xca file to run it for your user. Right-click the file, select properties, permission tab, check allow execute or executable, apply, ok, the retry it.
Phd21: Mint KDE 17.3 & 18.3, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

Pippin
Level 3
Level 3
Posts: 146
Joined: Wed Dec 13, 2017 11:14 am
Location: NL/DE/TH

Re: Installing XCA

Post by Pippin » Wed Mar 07, 2018 2:17 am

Hi,
Thanks for the download by the way.

Aware of the risks, I do everything this way:

Code: Select all

pippin@Laptop-1 ~ $ sudo -i
[sudo] password for pippin: 
So I think permissions are ok:

Code: Select all

build # ls -l
total 35904
-rw-rw-r-- 1 root root       21 Mar  6 01:30 commithash.h
-rw-rw-r-- 1 root root    15930 Mar  7 07:10 config.log
-rwxrwxr-x 1 root root    29889 Mar  7 07:10 config.status
drwxrwxr-x 2 root root     4096 Mar  7 07:11 doc
drwxrwxr-x 2 root root     4096 Mar  6 01:30 img
drwxrwxr-x 2 root root     4096 Mar  6 01:50 lang
drwxrwxr-x 2 root root     4096 Mar  6 01:42 lib
-rw-rw-r-- 1 root root      299 Mar  6 01:30 local.h
-rw-r--r-- 1 root root     1171 Mar  7 07:10 Local.mak
lrwxrwxrwx 1 root root       11 Mar  7 07:10 Makefile -> ../Makefile
drwxrwxr-x 2 root root     4096 Mar  6 01:30 misc
drwxrwxr-x 2 root root     4096 Mar  6 01:30 ui
drwxrwxr-x 2 root root     4096 Mar  6 01:41 widgets
-rwxr-xr-x 1 root root 36047256 Mar  6 01:50 xca
-rwxrwxr-x 1 root root   625608 Mar  7 07:11 xca_db_stat
Thanks.
"One good thing about music, when it hits you feel no pain.”
B.M.

User avatar
thx-1138
Level 6
Level 6
Posts: 1107
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Installing XCA

Post by thx-1138 » Wed Mar 07, 2018 11:25 am

sudo apt-get install libqt5gui5 libqt5core5a libqt5widgets5, then try running it again...

Pippin
Level 3
Level 3
Posts: 146
Joined: Wed Dec 13, 2017 11:14 am
Location: NL/DE/TH

Re: Installing XCA

Post by Pippin » Wed Mar 07, 2018 11:36 am

Already installed:

Code: Select all

# apt-get install libqt5gui5 libqt5core5a libqt5widgets5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libqt5core5a is already the newest version (5.5.1+dfsg-16ubuntu7.5).
libqt5gui5 is already the newest version (5.5.1+dfsg-16ubuntu7.5).
libqt5widgets5 is already the newest version (5.5.1+dfsg-16ubuntu7.5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Pippin wrote:
Tue Mar 06, 2018 1:28 pm
Installed qt5-default (5.5.1) through Synaptic Package Manager.
OpenSSL (1.0.2g) is already installed.
It`s quite a journey... :)

Thanks.
"One good thing about music, when it hits you feel no pain.”
B.M.

User avatar
thx-1138
Level 6
Level 6
Posts: 1107
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Installing XCA

Post by thx-1138 » Wed Mar 07, 2018 12:25 pm

Pippin wrote:
Wed Mar 07, 2018 11:36 am
Already installed:
# apt-get install libqt5gui5 libqt5core5a libqt5widgets5
......................................................................................................
Installed qt5-default (5.5.1) through Synaptic Package Manager.
OpenSSL (1.0.2g) is already installed.
libqt5gui5 libqt5core5a libqt5widgets5 & OpenSSL (1.0.2g) install some of the required (compiled) runtime libraries.
Ie. stuff the already-built app needs in order to execute in the first place (note that there might exist more library dependencies than those).

qt5-default (5.5.1) installs some of the required headers & development files.
Ie. stuff that you need to successfully build the app in the first place.
Note again the 'some' part, chances are that more headers & dev-related stuff might be needed to be installed first.
Chances are you'll probably also need to install the 'recommended' packages as well, qt5-qmake & qt5-dev-tools.

libssl-dev & linuxdoc-tools that i recommended above: the log above complains it can't find them.
The first one gives the ability to link correctly to OpenSSL (essential). The second one isn't really essential,
it will simply build (if installed) nicely formatted html help files for the app in question.

Edit: ...in regards to why the above doesn't execute (even after having set the execute bit permission),
most likely the executable(s) are linked against a newer 5.6 version of QT (...libQt5Core.so.5: version `Qt_5.6'),
while Mint18/Ubuntu16.04 uses (by default) QT 5.5.1 runtime libs...

Post Reply

Return to “Software & Applications”