August 2016
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  

Categories

August 2016
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  

convert a PFX to a seperate .key/.crt file

So after you installed OpenSSL you can start it from it’s Bin folder. I’d like to put OpenSSL\Bin in my path so I can start it from any folder. Fire up a command prompt and cd to the folder that contains your .pfx file. First type the first command to extract the private key:

openssl […]

OpenSSL command reference

OpenSSL command reference General OpenSSL commands commands to generate CSRs, Certificates, Private Keys and other tasks.

Generate a new private key and matching certificate signing request (Unix)

openssl req -out CSR.csr -pubkey -new -keyout privateKey.key Generate a new private key and matching certificate signing request (Windows)

openssl req -out CSR.csr -pubkey -new -keyout privateKey.key […]

Configuring automatic startup of Oracle Database under systemd on RHEL 7/OEL 7/CentOS 7

Configuring automatic startup of Oracle Database under systemd on RHEL 7/OEL 7/CentOS 7 There are several methods how to start Oracle Database automatically during/after OS boot. You can use Oracle CRS, other clusterware or init implemented in Linux. Starting RHEL 7 SysV init has been replaced by systemd or simply said systemd is the new […]

IPMI

IPMI ( Intelligent Platform Management Interface ) : It is a remote hardware health monitoring and management system that defines interfaces for use in monitoring the physical health of servers.

IPMI provides a way to monitor & manage a server system that may be powered off or unresponsive by using a network connection to the […]

dynamic date value in shell scripts

dynamic date value in shell scripts using a variable – easier to read in scripts: NOW=$(date +”%Y%m%d%H%M%S”) echo “bar” > “$NOW”foobar.txt

one-line, equivalent to above: echo “bar” > $(date +”%Y%m%d%H%M%S”)foobar.txt

alternate single-line format: echo “bar” >> $(date “+myfile%Y%m%d.txt”)

man strftime to see formatting values

CentOS 7 + SELinux + PHP + Apache – cannot write/access file

Amazon EC2 instance running on CentOS 7. Apache logs keep saying that it can’t write to file due to permission where file permissions are properly setup, only to realize it was SELinux in action.

Problem 1: Can’t serve files on a custom directory

The first problem I have encountered is that I tried to setup […]

Fix stale NFS mounts on linux without rebooting

Fix stale NFS mounts on linux without rebooting

I have often noticed that some folks reboot systems to fix stale NFS mount problems which can be disruptive.

Fortunately, that often isn’t necessary. All you have to do is restart nfs and autofs services. However that sometimes fails because user processes have files open on the […]

KernelCare is now available for CentOS & RHEL 7 kernels

KernelCare for CentOS & RHEL 7

KernelCare is now available for CentOS & RHEL 7 kernels. Latest CentOS / RHEL kernels can be patched against privilege escalation vulnerability CVE-2014-4943. Other supported kernels were patched against it last week

CVEs: CVE-2014-4943

Systems with AUTO_UPDATE=True (DEFAULT) in /etc/sysconfig/kcare/kcare.conf will automatically update, and no action is […]

List/Change kernel in centos 7

List/Change kernel in centos 7

Following command can be used to list the kernels in centos 7 ============================ # egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \’ Linux Server, with Linux 3.10.0-123.el7.x86_64 Linux Server, with Linux 3.10.0-123.4.4.el7.x86_64 Linux Server, with Unbreakable Enterprise Kernel 3.8.13-35.3.2.el7uek.x86_64 Linux Server, with Unbreakable Enterprise Kernel 3.8.13-35.3.1.el7uek.x86_64 Linux Server, with […]