This article will demonstrate how to with Python mock datetime now in unit testing. Unit testing is vital to any successful and robust software product, and having the ability to mock sections of your code is a critical part of that. The use case for mocking datetime now in this article is that … [Read more...] about Python mock datetime now
Python get SSL Certificate
This article will demonstrate how to use Python to get an SSL Certificate from a server. The server may be a remote web server, sip server, or any other type of server supporting SSL or TLS protected by a certificate. The server may even be a local server on the same machine as you are working from, … [Read more...] about Python get SSL Certificate
Python Database Connector
The purpose of this article is to demonstrate how to use a Python Database Connector to both read and write data to an Oracle database. The concept is the same for any Database Management System (DBMS) you are using, but the drivers will be different. This article will go over the steps required to … [Read more...] about Python Database Connector
Python Public Private Key Encryption
The purpose of this article is to demonstrate how to use Python to perform public private key encryption. Public key encryption is a form of asymmetric encryption using a public and private key, different from symmetric encryption which uses a single shared secret key. For additional encryption … [Read more...] about Python Public Private Key Encryption
python requests authentication
python requests authentication provides multiple mechanisms for authentication to web service endpoints, including basic auth, X.509 certificate authentication, and authentication with a bearer token (JWT or OAuth2 token). This article will cover the basic examples for authenticating with each of … [Read more...] about python requests authentication
Python Self Signed Certificate
The python programming language can be used to create a self signed certificate. Self Signed Certificates can be used for internal systems that do not need automatic public trust from a well known CA (Certification Authority). The downside to using self signed certificates is that they must be … [Read more...] about Python Self Signed Certificate
Python CSR – Create a Certificate Signing Request using Python
The purpose of this article is to demonstrate how to create a CSR (Certificate Signing Request) with the Python programming language. A CSR is required when requesting an SSL Certificate from a CA (Certification Authority) and is a signed request by the private key in your asymmetric key pair. … [Read more...] about Python CSR – Create a Certificate Signing Request using Python
AWS Lambda pyOpenSSL and cryptography
The purpose of this article is to demonstrate AWS Lambda pyOpenssl and cryptography installation in an AWS Lambda function. AWS Lambda is a cost effective solution for running all kinds of different jobs in all kinds of different languages and programming stacks, including Python. Python code will … [Read more...] about AWS Lambda pyOpenSSL and cryptography