Posts

Showing posts from July, 2018

How to create a self signed SSL certificate and how to use it with your web Server.

Image
SSL certificate is the foremost important aspect of any website. If your website is running without the SSL, the modern browsers will stop the users from entering the website. Of course, there are ways to bypass that, at your own risk. As long as your website has no commercial data exchange, sensitive user information, etc, you are still good to run a website without a proper SSL certificate. For example, a blog can run without an SSL.  Note that Google AdSense accepts websites without SSL.  But the topic of this post is about Self Signed SSL certificate. How to create one, how to use it, and where to use it.  Let us see where to use it. For any website which is used for internal purposes, it's always a good idea to use Self Signed SSL, instead of paying for a real SSL certificate. Internal I mean, within a company, team, or for personal uses, for testing purposes, etc.  Now, let us see how to create a self-signed SSL certificate.  What you need A Linux machine.  OpenSSL utility  A

Cleaning up private docker registry

The solution to cleaning the unused docker registry layers is not straightforward, there is nothing readily available from docker. As more and more docker layers are pushed and tagged, it may be possible that there are image layers that may not be required. These unnecessary layers will consume a lot of storage space. This page describes the way to delete unused layers without disturbing the registry. I am going to explain how to clean up unused layers from docker registry using HTTP API V2 Docker HTTP API V2 More about HTTP API V2 The current version of the docker provides an option to interact with the images in the remote private registry using HTTP API version 2. Few useful Digest APIs List all the repositories available in the private registry CATALOG $ curl reg-server:5000/v2/_catalog Output ------ { "repositories" :[ "alpine","1_ubuntu_16.04" , "centos" , "centos6-build-test" , "centos6-build-qa"