Last active
April 26, 2024 16:00
-
-
Save arawako/80b5f59e867c54c5fbf134b4117d4dc3 to your computer and use it in GitHub Desktop.
Steps for compiling openssl in debian buster, testing and creating a .deb package using checkinstall
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Prepare the system | |
touch /etc/apt/sources.list.d/backports.list | |
echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list.d/backports.list | |
apt update && apt -y upgrade && apt install -y build-essential git checkinstall | |
# Clone the Source | |
git clone https://github.com/openssl/openssl.git | |
# Compile, test and install manually | |
cd openssl | |
./config | |
make | |
make test | |
make install (manual mode) | |
# Create and install the Debian package | |
checkinstall | |
dpkg -i name_debian_package.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make depend && make _tests | |
make[1]: Entering directory '/home/user/Git/openssl' | |
make[1]: Leaving directory '/home/user/Git/openssl' | |
make[1]: Entering directory '/home/user/Git/openssl' | |
( cd test; \ | |
mkdir -p test-runs; \ | |
SRCTOP=../. \ | |
BLDTOP=../. \ | |
RESULT_D=test-runs \ | |
PERL="/usr/bin/perl" \ | |
EXE_EXT= \ | |
OPENSSL_ENGINES=`cd .././engines 2>/dev/null && pwd` \ | |
OPENSSL_MODULES=`cd .././providers 2>/dev/null && pwd` \ | |
/usr/bin/perl .././test/run_tests.pl ) | |
01-test_abort.t .................... ok | |
01-test_sanity.t ................... ok | |
01-test_symbol_presence.t .......... ok | |
01-test_test.t ..................... ok | |
02-test_errstr.t ................... ok | |
02-test_internal_context.t ......... ok | |
02-test_internal_ctype.t ........... ok | |
02-test_internal_keymgmt.t ......... ok | |
02-test_internal_provider.t ........ ok | |
02-test_lhash.t .................... ok | |
02-test_ordinals.t ................. ok | |
02-test_sparse_array.t ............. ok | |
02-test_stack.t .................... ok | |
03-test_exdata.t ................... ok | |
03-test_fipsinstall.t .............. ok | |
03-test_internal_asn1.t ............ ok | |
03-test_internal_asn1_dsa.t ........ ok | |
03-test_internal_bn.t .............. ok | |
03-test_internal_chacha.t .......... ok | |
03-test_internal_curve448.t ........ ok | |
03-test_internal_ec.t .............. ok | |
03-test_internal_mdc2.t ............ ok | |
03-test_internal_modes.t ........... ok | |
03-test_internal_namemap.t ......... ok | |
03-test_internal_poly1305.t ........ ok | |
03-test_internal_rsa_sp800_56b.t ... ok | |
03-test_internal_siphash.t ......... ok | |
03-test_internal_sm2.t ............. ok | |
03-test_internal_sm4.t ............. ok | |
03-test_internal_ssl_cert_table.t .. ok | |
03-test_internal_x509.t ............ ok | |
03-test_params_api.t ............... ok | |
03-test_property.t ................. ok | |
03-test_ui.t ....................... ok | |
04-test_asn1_decode.t .............. ok | |
04-test_asn1_encode.t .............. ok | |
04-test_asn1_string_table.t ........ ok | |
04-test_bio_callback.t ............. ok | |
04-test_bioprint.t ................. ok | |
04-test_conf.t ..................... ok | |
04-test_err.t ...................... ok | |
04-test_param_build.t .............. ok | |
04-test_params.t ................... ok | |
04-test_params_conversion.t ........ ok | |
04-test_pem.t ...................... ok | |
04-test_provider.t ................. ok | |
05-test_bf.t ....................... ok | |
05-test_cast.t ..................... ok | |
05-test_des.t ...................... ok | |
05-test_hmac.t ..................... ok | |
05-test_idea.t ..................... ok | |
05-test_md2.t ...................... skipped: md2 is not supported by this OpenSSL build | |
05-test_mdc2.t ..................... ok | |
05-test_rand.t ..................... ok | |
05-test_rc2.t ...................... ok | |
05-test_rc4.t ...................... ok | |
05-test_rc5.t ...................... skipped: rc5 is not supported by this OpenSSL build | |
06-test-rdrand.t ................... ok | |
10-test_bn.t ....................... ok | |
10-test_exp.t ...................... ok | |
15-test_dh.t ....................... ok | |
15-test_dsa.t ...................... ok | |
15-test_ec.t ....................... ok | |
15-test_ecdsa.t .................... ok | |
15-test_ecparam.t .................. ok | |
15-test_genrsa.t ................... ok | |
15-test_mp_rsa.t ................... ok | |
15-test_out_option.t ............... ok | |
15-test_rsa.t ...................... ok | |
15-test_rsapss.t ................... ok | |
20-test_dgst.t ..................... ok | |
20-test_enc.t ...................... ok | |
20-test_enc_more.t ................. ok | |
20-test_kdf.t ...................... ok | |
20-test_mac.t ...................... ok | |
20-test_passwd.t ................... ok | |
20-test_pkeyutl.t .................. ok | |
20-test_provider.t ................. ok | |
25-test_crl.t ...................... ok | |
25-test_d2i.t ...................... ok | |
25-test_pkcs7.t .................... ok | |
25-test_req.t ...................... ok | |
25-test_sid.t ...................... ok | |
25-test_verify.t ................... ok | |
25-test_verify_store.t ............. ok | |
25-test_x509.t ..................... ok | |
30-test_aesgcm.t ................... ok | |
30-test_afalg.t .................... ok | |
30-test_engine.t ................... ok | |
30-test_evp.t ...................... ok | |
30-test_evp_extra.t ................ ok | |
30-test_evp_fetch_prov.t ........... ok | |
30-test_evp_kdf.t .................. ok | |
30-test_evp_pkey_dparam.t .......... ok | |
30-test_evp_pkey_provided.t ........ ok | |
30-test_pbelu.t .................... ok | |
30-test_pkey_meth.t ................ ok | |
30-test_pkey_meth_kdf.t ............ ok | |
40-test_rehash.t ................... ok | |
60-test_x509_check_cert_pkey.t ..... ok | |
60-test_x509_dup_cert.t ............ ok | |
60-test_x509_store.t ............... ok | |
60-test_x509_time.t ................ ok | |
61-test_bio_prefix.t ............... ok | |
65-test_cmp_asn.t .................. ok | |
65-test_cmp_ctx.t .................. ok | |
65-test_cmp_hdr.t .................. ok | |
65-test_cmp_msg.t .................. ok | |
65-test_cmp_protect.t .............. ok | |
65-test_cmp_status.t ............... ok | |
70-test_asyncio.t .................. ok | |
70-test_bad_dtls.t ................. ok | |
70-test_clienthello.t .............. ok | |
70-test_comp.t ..................... ok | |
70-test_key_share.t ................ ok | |
70-test_packet.t ................... ok | |
70-test_recordlen.t ................ ok | |
70-test_renegotiation.t ............ ok | |
70-test_servername.t ............... ok | |
70-test_sslcbcpadding.t ............ ok | |
70-test_sslcertstatus.t ............ ok | |
70-test_sslextension.t ............. ok | |
70-test_sslmessages.t .............. ok | |
70-test_sslrecords.t ............... ok | |
70-test_sslsessiontick.t ........... ok | |
70-test_sslsigalgs.t ............... ok | |
70-test_sslsignature.t ............. ok | |
70-test_sslskewith0p.t ............. ok | |
70-test_sslversions.t .............. ok | |
70-test_sslvertol.t ................ ok | |
70-test_tls13alerts.t .............. ok | |
70-test_tls13cookie.t .............. ok | |
70-test_tls13downgrade.t ........... ok | |
70-test_tls13hrr.t ................. ok | |
70-test_tls13kexmodes.t ............ ok | |
70-test_tls13messages.t ............ ok | |
70-test_tls13psk.t ................. ok | |
70-test_tlsextms.t ................. ok | |
70-test_verify_extra.t ............. ok | |
70-test_wpacket.t .................. ok | |
71-test_ssl_ctx.t .................. ok | |
80-test_ca.t ....................... ok | |
80-test_cipherbytes.t .............. ok | |
80-test_cipherlist.t ............... ok | |
80-test_ciphername.t ............... ok | |
80-test_cms.t ...................... ok | |
80-test_cmsapi.t ................... ok | |
80-test_ct.t ....................... ok | |
80-test_dane.t ..................... ok | |
80-test_dtls.t ..................... ok | |
80-test_dtls_mtu.t ................. ok | |
80-test_dtlsv1listen.t ............. ok | |
80-test_ocsp.t ..................... ok | |
80-test_pkcs12.t ................... ok | |
80-test_ssl_new.t .................. ok | |
80-test_ssl_old.t .................. ok | |
80-test_ssl_test_ctx.t ............. ok | |
80-test_sslcorrupt.t ............... ok | |
80-test_tsa.t ...................... ok | |
80-test_x509aux.t .................. ok | |
90-test_asn1_time.t ................ ok | |
90-test_async.t .................... ok | |
90-test_bio_enc.t .................. ok | |
90-test_bio_memleak.t .............. ok | |
90-test_constant_time.t ............ ok | |
90-test_fatalerr.t ................. ok | |
90-test_gmdiff.t ................... ok | |
90-test_gost.t ..................... skipped: No test GOST engine found | |
90-test_ige.t ...................... ok | |
90-test_includes.t ................. ok | |
90-test_memleak.t .................. ok | |
90-test_overhead.t ................. ok | |
90-test_secmem.t ................... ok | |
90-test_shlibload.t ................ ok | |
90-test_srp.t ...................... ok | |
90-test_sslapi.t ................... ok | |
90-test_sslbuffers.t ............... ok | |
90-test_store.t .................... ok | |
90-test_sysdefault.t ............... ok | |
90-test_threads.t .................. ok | |
90-test_time_offset.t .............. ok | |
90-test_tls13ccs.t ................. ok | |
90-test_tls13encryption.t .......... ok | |
90-test_tls13secrets.t ............. ok | |
90-test_v3name.t ................... ok | |
95-test_external_boringssl.t ....... skipped: No external tests in this configuration | |
95-test_external_krb5.t ............ skipped: No external tests in this configuration | |
95-test_external_pyca.t ............ skipped: No external tests in this configuration | |
99-test_ecstress.t ................. ok | |
99-test_fuzz.t ..................... ok | |
All tests successful. | |
Files=190, Tests=1757, 233 wallclock secs ( 6.81 usr 0.93 sys + 192.45 cusr 29.31 csys = 229.50 CPU) | |
Result: PASS | |
make[1]: Leaving directory '/home/user/Git/openssl' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment