Connecting to RabbitMQ Server From Golang with Self-signing SSL Certificates

Connecting to RabbitMQ Server From Golang with Self-signing SSL Certificates

Connecting to RabbitMQ server from Golang with self-signing SSL certificates. We are going to create a Golang client to connect to our RabbitMQ server through TLS. For that, we will have to create self-signed SSL certificates and share those between the Golang application and the RabbitMQ server.

In this example we are going to create a Golang client to connect to our RabbitMQ server through TLS. For that, we will have to create self-signed SSL certificates and share those between the Golang application and the RabbitMQ server.

Create certificates

Create the Dockerfile below in your system and run docker build --no-cache . command. This will output the content of all the required certificate files in terminal. Manually create the files and keep them somewhere for now. For more details, visit  Using tls-gen's Basic Profile link.

FROM python:3

RUN git clone https://github.com/michaelklishin/tls-gen tls-gen
RUN cd /tls-gen/basic && make PASSWORD= CN=localhost && make verify
## Without CN=localhost bit, which works just fine too.
## RUN cd /tls-gen/basic && make PASSWORD= && make verify

RUN cat /tls-gen/basic/result/ca_certificate.pem
RUN cat /tls-gen/basic/result/client_certificate.pem
RUN cat /tls-gen/basic/result/client_key.pem
RUN cat /tls-gen/basic/result/server_certificate.pem
RUN cat /tls-gen/basic/result/server_key.pem

docker go rabbitmq golang

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

What's new in the go 1.15

Go announced Go 1.15 version on 11 Aug 2020. Highlighted updates and features include Substantial improvements to the Go linker, Improved allocation for small objects at high core counts, X.509 CommonName deprecation, GOPROXY supports skipping proxies that return errors, New embedded tzdata package, Several Core Library improvements and more.

Docker Container as an Executable to Process Images using Go (Golang)

We are going to create a Docker container that will act as an executable to process some image files. We are going to use Go (Golang) to write an image processing program. For this, we would be working with Docker VOLUME, ENTRYPOINT, and other Dockerfile instructions.

Docker Explained: Docker Architecture | Docker Registries

Following the second video about Docker basics, in this video, I explain Docker architecture and explain the different building blocks of the docker engine; docker client, API, Docker Daemon. I also explain what a docker registry is and I finish the video with a demo explaining and illustrating how to use Docker hub.

Run Go Service in Docker

Run Go Service in Docker. Why use Docker at all? By using Docker, you can create a neat deploy system for yourself. You can easily change the port for Go web server without changing the Go code itself. You can run multiple different databases at the same time.

Unit Test SQL in Golang, Without Mocking, Using Docker (Go, Postgres, Docker)

Recently while working on an API that interfaced with a database, I mistakenly updated our ORM package to the latest version. The codeā€¦