General

Common keytool and openssl commands

Generate root CA private key: openssl genrsa -des3 -out rootCA.key 2048 Create root CA certificate: openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1825 -out rootCA.pem Generate private key: openssl genrsa -des3 -out my-private.key 2048 Create certificate CSR from private key: openssl req -new -sha256 -key my-private.key -out my-signature-request.csr Sign certificate by root CA: openssl x509 -req -in my-signature-request.csr…

Continue Reading

General

Some useful Docker stuff

Some common commands necessary to build and run own docker image in a container: Command Description Example docker pull [image_name] Pulls image from default docker registry: //hub.docker.com/ docker pull ubuntu docker ps [options] List running containers. Add -a for all available container. docker ps -a docker container create [options] [image_name] [comand] Creates container with pulled image. Add –name to provide…

Continue Reading

General

A quick Regular expressions (Regex) manual / cheat sheet. Samples.

Obviously regular expressions is a little, but powerful helper to implement various complex requirements. As it is a text search oriented functionality, it is extremely useful in DB based tasks related to data ETL layers, searching and other open text related logic. But it is used entirely everywhere. Almost every text editor support regex search file contents. Its very beneficial…

Continue Reading