forked from adwise-fiu/5G-PQ-TLS-Tunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoqs.sh
46 lines (29 loc) · 1.09 KB
/
oqs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
#sudo apt update
#sudo apt install build-essential checkinstall zlib1g-dev -y
#sudo apt install cmake gcc libtool libssl-dev make ninja-build git -y
#sudo apt install astyle cmake gcc ninja-build libssl-dev python3-pytest python3-pytest-xdist unzip xsltproc doxygen graphviz python3-yaml valgrind -y
cd /usr/local/src
sudo git clone https://github.com/open-quantum-safe/openssl.git
sudo git clone --branch main https://github.com/open-quantum-safe/liboqs.git
cd liboqs
sudo mkdir build && cd build
sudo cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr/local/src/openssl/oqs ..
sudo ninja
sudo ninja install
cd ..
cd ..
cd openssl
sudo ./Configure no-shared linux-x86_64 -lm --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib
sudo make -j
sudo make install
# Link libraries
sudo sh -c 'echo "/usr/local/ssl/lib" > /etc/ld.so.conf.d/openssl.conf'
sudo ldconfig -v
# Edit environment file
sudo sed -i '/^PATH/s/"$/:\n\/usr\/local\/ssl\/bin"/' /etc/environment
# Verify installation
source /etc/environment
echo "$PATH"
openssl version -a
echo "Configuration completed successfully."