Skip to content

Instantly share code, notes, and snippets.

How To: Two Way SSL

This guide explain how to create all the required certificates to enable SSL client authentication and revogation of certificates

Attention: I suppose that you already know how to generate a Self-Signed certificate for Root CA!

First of all you will need to generate a some config files to start, these files will be required:

ca.conf - config that enable a certificate revogation flow
[ ca ]
@addomafi
addomafi / soa_db_maintenance.sql
Last active June 27, 2018 13:32
SOA DB Maintenance
-- Drop Message Reports Data
truncate table OSB1213_SOAINFRA.WLI_QS_REPORT_DATA;
alter table OSB1213_SOAINFRA.WLI_QS_REPORT_DATA DISABLE constraint FK_WLI_QS_REPORT_DATA;
truncate table OSB1213_SOAINFRA.WLI_QS_REPORT_ATTRIBUTE;
alter table OSB1213_SOAINFRA.WLI_QS_REPORT_DATA ENABLE constraint FK_WLI_QS_REPORT_DATA;
-- Create Message Report Index
create index OSB1213_SOAINFRA.IDX$$_36870001 on
OSB1213_SOAINFRA.WLI_QS_REPORT_ATTRIBUTE("DB_TIMESTAMP","MSG_GUID");
@herrfeder
herrfeder / sricam.md
Last active April 3, 2025 18:17
Offensive IOT Blog - This blog post has been created for completing the requirements of the SecurityTube Offensive Internet of Things course. http://www.securitytube-training.com/online-courses/offensive-internet-of-things-exploitation/index.html

Student ID: IoTE-775

This Blog/Gist will be very detailed with a lot of additional listings to see the process and methodology of Examination.

Sricam SP009 Hardware and Software Examination

In this gist I will try to examine and exploit the Sricam SP009. I purchased it from Attify with the IOT Exploitation Kit.

  1. First Recon
  • doing Research on Manufacturer Details
@xmfcx
xmfcx / Voice-Controlled-IoT.md
Last active February 13, 2025 09:18
OK Google, Arduino Uno, ESP8266, Blynk, IFTTT, Google Assistant Integration Tutorial

OK Google, Arduino Uno, ESP8266, Blynk, IFTTT, Google Assistant Integration Tutorial

This is a tutorial to realize following video: https://www.youtube.com/watch?v=PBiOGvJRPqg

Requirements:

  • Android phone Marsmallow or higher or Apple phone (for google assistant)
  • IFTTT app
  • Blynk app
  • Arduino UNO
  • ESP8266 Wifi module
@andineck
andineck / 0-README.md
Last active September 21, 2021 00:24
retropie bluez sixaxis shanwan PS3 controller bluetooth connection

shawnwan ps3 controller bluetooth connection problem fix

if your ps3 controller just vibrates when connecting to the retropie, or when your ps3 controller does not connect via bluetooth, this writedown might help you.

Since no exact description did work for me, I decided to write it down, what I did based on other descriptions, in order to get it to work.

links

@kevin-smets
kevin-smets / 1_kubernetes_on_macOS.md
Last active June 23, 2025 01:06
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

@dmouse
dmouse / Dockerfile
Last active June 2, 2022 20:52
Run Firefox or Google Chrome into a Docker container | based on http://fabiorehm.com/blog/2014/09/11/running-gui-apps-with-docker/
FROM ubuntu:14.04
# Replace 1000 with your user / group id
RUN export uid=1000 gid=1000 && \
mkdir -p /home/developer && \
echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd && \
echo "developer:x:${uid}:" >> /etc/group && \
echo "developer ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/developer && \
chmod 0440 /etc/sudoers.d/developer && \
chown ${uid}:${gid} -R /home/developer
#!/bin/bash
dire=`echo $1 | sed -e 's@[^/]@@g'`
numb=`expr ${#dire} + 1`
find $* | cut -d / -f $numb
# curl -O https://gist.githubusercontent.com/richmikan/3251311/raw/290c70b9a45b5eb66036b83de79bfe6bb0b3b054/parsrx.sh
function searchClipBoard() {
cclip=`plutil -convert xml1 ~/Library/Application\ Support/ClipMenu/clips.data -o - | parsrx.sh | grep '/plist/dict/array/string ' | sed '1,2d' | sed 's/\/plist\/dict\/array\/string//g' | peco`
echo $cclip | pbcopy
}
zle -N searchClipBoard
bindkey '^x^p' searchClipBoard
@soarez
soarez / ca.md
Last active July 9, 2025 06:05
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.