Skip to content

Instantly share code, notes, and snippets.

View Bluesboy's full-sized avatar
⚔️
A samurai without a sword is like a samurai with one, but only without one.

Shamil Sattarov Bluesboy

⚔️
A samurai without a sword is like a samurai with one, but only without one.
  • deus.pro
  • Russia
View GitHub Profile
@Bluesboy
Bluesboy / gencert.sh
Created July 11, 2024 19:22
Generate CA and RSA certificate and add it to trusted system wide on Linux
#!/usr/bin/env bash
set -eu
org=Funnelflux
domain=edge-cloudruns.funnelflux.pro
sudo trust anchor --remove ca.crt || true
openssl genpkey -algorithm RSA -out ca.key
@Bluesboy
Bluesboy / gencert.sh
Created July 11, 2024 19:05
Generate CA and ECDSA certificate and add it to trusted system wide on Linux
#!/usr/bin/env bash
set -eu
org=Funnelflux
domain=edge-cloudruns.funnelflux.pro
sudo trust anchor --remove ca.crt || true
openssl ecparam -genkey -name prime256v1 -out ca.key
openssl req -x509 -new -nodes -key ca.key -days 3650 -out ca.crt -subj "/CN=${domain}/O=${org}"
@Bluesboy
Bluesboy / .envpass
Last active June 20, 2018 07:57
Simple bash script to export credentials in environment
#!/bin/bash
# Read Password
export ENV_USER=<username>
echo -n Password:
read -s PASSWORD
export ENV_PASS=$PASSWORD