Working with Centos sources

Clone their helper repo first:

git clone  https://git.centos.org/git/centos-git-common.git

Go to their RPM project and select a project to clone. I’m picking coreutils here. This repo has a SPEC file and the patches to the original source.

git clone https://git.centos.org/r/rpms/coreutils.git

The master branch is always empty. Checkout their c7 branch to see the SPECS and SOURCES folders for Centos 7, and run the helper script to fetch the source.

git checkout c7
../centos-git-common/get_sources.sh

openssl – Connect and verify

To connect to a remote host and verify the TLS connection, run this command:

openssl s_client -verify -showcerts \
-connect remote-hostname.com:443 -msg \
-CAfile allca.cer -cert myhostname.cer -key myhostname.key

The example above is for a mutual TLS connection where the client offers its certs too.

To view the parsed certificate of a remote host, do this:

echo | \
openssl s_client  -connect remote-hostname.com:443 2>/dev/null | \
openssl x509 -text

No-Cost RHEL Developer Subscription now available

 My past two distros at work and home have been RHEL derivatives so I’m happy to see this news:

Today, Red Hat announced the availability of a no-cost Red Hat Enterprise Linux developer subscription, available as part of the Red Hat Developer Program.
Offered as a self-supported, development-only subscription, the Red Hat
Enterprise Linux Developer Suite provides you with a more stable
development platform for building enterprise applications – across
cloud, physical, virtual, and container-centric infrastructures. 

 No-Cost RHEL Developer Subscription now available – Red Hat Developer Blog

rpmerizor – create an RPM package from installed files

I’ve needed something very similar at work, so this was a neat find.
via freshcode.

rpmerizor 2.8

rpmerizor is a script that allows you to create an RPM package from installed files. You simply have to specify files on the command line and answering a few interactive questions to fill rpm meta-dat… – Changes: change shebang to use /usr/bin/env