Skip to content

Instantly share code, notes, and snippets.

View vkosuri's full-sized avatar
:octocat:
I may be slow to respond.

Mallikarjunarao Kosuri vkosuri

:octocat:
I may be slow to respond.
View GitHub Profile
@vkosuri
vkosuri / tcl_basic_cmds_usage.tcl
Created May 23, 2016 12:54
TCL commands usage
# set, a built-in command, reads and writes variables.
set a 10
# Desc: puts - Write to a channel
# Syntax: puts ?-nonewline? ?channelId? string
# channelId stdin, stdout, stderr
set abc [puts "test"]
puts stdout $tcl_version nonewline
@vkosuri
vkosuri / eval_dict.robot
Last active May 24, 2016 06:29
Running Robotframework from within python
*** Settings ***
Documentation This example evaluate a JSON data
*** Test Cases ***
EvalDict
${post_dict}= Evaluate {u'name': 'uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu', u'enabled': True}
@vkosuri
vkosuri / webserver.py
Created December 1, 2016 08:35
Python SimpleHTTPServer
#! /usr/bin/env python
'''
python webserver.py --dir ~/Documents
python webserver.py --dir ~/Documents --port 5000
'''
import posixpath
import argparse
@vkosuri
vkosuri / explore_openssl.sh
Created September 18, 2023 17:28
Exploring OpenSSL Bash Script for Enhanced Security
#!/bin/bash
# Function to display usage instructions
usage() {
echo "Usage: $0 <operation> [options]"
echo "Operations:"
echo " genca - Generate a CA certificate and output public key, private key, and CSR."
echo " genec - Generate an EC key and certificate."
echo " genrsa - Generate an RSA key and certificate."
echo " genpkcs12 - Generate a PKCS#12 (.pfx) file from a private key and certificate."
@vkosuri
vkosuri / build_oqs_provider.sh
Last active January 2, 2024 11:09
Integrating OpenSSL with OQS Providers for Enhanced Quantum-Safe Security
#!/bin/bash
# Enable error handling
# set -x
# Set up environment and variables
INSTALLDIR_OPENSSL="/opt/ossl32" # openssl3.2
INSTALLDIR_LIBOQS="/opt/liboqs"
INSTALLDIR_PROVIDER="/opt/oqs-provider"
LIBOQS_BUILD_DEFINES="ON"
@vkosuri
vkosuri / README.md
Last active September 6, 2024 06:10
Enabling TLS 1.1 with OpenSSL3 and Python3

Enabling TLS 1.1 with Python3 and OpenSSL3

This GIST trying to demonstrates how to set up a Python server and client to support TLS 1.1, including the necessary configurations to bypass the default security restrictions.

Background

Due to security concerns https://bugs.python.org/issue43998 and python/cpython#25778, TLS 1.0 and TLS 1.1 are deprecated and disabled by default in many environments. However, there are scenarios where you might need to support these older protocols. This GIST trying to provides a workaround to enable TLS 1.1 using Python and OpenSSL.

Important Note