Posts

Showing posts from 2018

Open SSL - Creating Self-Signed certificates

Open SSL Create Self Signed Certificate Here are the steps involved in creating self signed certificate a) Create a key b) Generate Certificate Sign request .csr c) Sign your certificate (As it is self signed) a) Create a key Create a directory first (to avoid confusions) mkdir certificates cd certificates Generate key file #openssl genrsa 1024 > private.key b) Generate Certificate Sign request .csr c) Sign your certificate (As it is self Signed) #openssl x509 -in certrequest.csr -out selfsigned.crt -req -signkey private.key -days 365 Here the -days is the number of days denotes the validity of certificate Once after this we can get the certificate as file "selfsigned.crt"

KAFKA commands - 1

A) Create KAFKA Topics Command Format #kafka-topics --create --topic [TOPIC NAME] --zookeeper [ZOOKEEPER HOSTNAME] --replication-factor [NUMBER OF REPLICAS] --partitions [NUMBER OF PARTITIONS] Example: #kafka-topics --create --topic mytesttopic --zookeeper myzkhost.cluster.com --replication-factor 2 --partitions 3 Here:- [TOPIC NAME = the name of the topic which is to be created ], [ZOOKEEPER HOSTNAME = zookeeper hostname ] [NUMBER OF REPLICAS = number of replications for each partitions, It should not be greater than the number of Brokers ] [NUMBER OF PARTITIONS = Number of partitions for a topic ] B) Describe a topic Command Format #kafka-topics --describe --topic [ TOPIC NAME ] --zookeeper [ZOOKEEPER HOSTNAME ] Example #kafka-topics --describe --topic mytesttopic --zookeeper myzkhost.cluster.com Topic:mytesttopic PartitionCount:3 ReplicationFactor:2 Configs: Topic: mytesttopic Partition: 0 Leader: 10 Replicas: 10,30 Isr: 10,30 Topic: myt...

OpenSSL Certificate creations

Create Self Signed Certificate Here are the steps involved in creating self signed certificate a) Create a key b) Generate Certificate Sign request .csr c) Sign your certificate (As it is self signed) a) Create a key Create a directory first (to avoid confusions) #mkdir certificates #cd certificates Generate key file #openssl genrsa 1024 > private.key b) Generate Certificate Sign request .csr #openssl req -new -key private.key > certrequest.csr c) Sign your certificate (As it is self Signed) #openssl x509 -in certrequest.csr -out selfsigned.crt -req -signkey private.key -days 365 Here the -days is the number of days denotes the validity of certificate Once after this we can get the certificate as file "selfsigned.crt"