Extract .pub file from a P12 certificate with C#

In cryptography, PKCS #12 defines an archive file format for storing many cryptography objects as a single file. It is commonly used to bundle a private key with its X.509 certificate or to bundle all the members of a chain of trust. When working with Oauth2 you may find that the client_credentials grant type supports the user of P12 files. […]


Configuring a password for KeyCloak running in Docker.

Starting up keycloak in a docker container using docker for windows can be a bit tricky the first time you try. For me the main issues were waiting for the container to start up and setting the admin password. Docker Hub container I have been using this Keycloak docker image […]


How to upload to Google Drive API from memory with C#

Google drive API standard examples. Most of if not all of the upload samples and examples for the Google drive api refer to it as file upload data. This implies that you have a file on your disk that you wish to upload. Even all of my own How to […]


Setting up RabbitMQ in Docker using Docker compose.

Recently I have been working on an application containing serval microservices. These microservices used RabbitMQ for communication between them. In order to develop this application I installed RabbitMQ on my machine as well as Erlang. This was not as easy as I thought it would be, it took me half […]


How to get a Google access token with CURL. 2

Google supports OAuth 2.0 authorization for access to their APIs and gain access to private user data. In this tutorial I am going to show you how to request an Access token and a refresh token from Google’s Oauth2 server using CURL. The steps for Google authorization OAuth2 is performed […]


Guide to Google analytics Data Api Beta with C#.

Google Analytics 4 When Google released the new version of Google Analytics GA4, a number of users flocked to the new type of Google analytics some abandoning their old universal analytics accounts. This became a big problem for developers who had applications that were designed to extract the data from […]


How to use the NextPageToken with the C# 3

This Tutorial was completely rewritten in April, 2021 What is pagination? Methods like the files.list in the Google Drive V3 API return a limited number of results per request. Each request returns a page of results. With the file.list method the maximum number of results or files returned per request […]


Google Drive API V3 Service Account 66

This Tutorial was completely rewritten in April, 2021 There are a lot of use cases for accessing the Google Drive API v3 with a service account. Think of a service account as a dummy user. You can pre authorize a service account granting it access to your data. So I […]