- Command
curl https://testhost
- Certificate unknown authority error
: x509: certificate signed by unknown authority
openssl s_client -showcerts -servername www.example.com -connect www.example.com:443 </dev/null |
#!/bin/bash | |
# Bash script for generating OAuth token for Google admin user fetching | |
#1) on https://console.developers.google.com/ register project and associate API from library | |
# OUTPUT: client_id,client_secret | |
client_id="..." | |
client_secret="...." | |
#2) get authorization code at the following link using web browser | |
# OUTPUT: code |
# Without CA | |
openssl req -x509 -newkey rsa:4096 -sha256 -days 365 -nodes -keyout selfsigned.key -out selfsigned.crt -subj "/C=FI/ST=Uusimaa/L=Helsinki/O=Verifa Oy/OU=IT/CN=example.verifa.io/emailAddress=selfsigned@verifa.io" -addext 'subjectAltName=DNS:sample.verifa.io,DNS=sample.verifa.com' | |
# With CA (repeats some steps from above) | |
openssl req -newkey rsa:2048 -nodes -keyout selfsigned.key -out selfsigned.csr -subj "/C=FI/ST=Uusimaa/L=Helsinki/O=Verifa Oy/OU=IT/CN=server.test.com/emailAddress=test@test.com" | |
openssl req -x509 -sha256 -days 1825 -newkey rsa:2048 -keyout rootCA.key -out rootCA.crt -subj "/C=FI/ST=Uusimaa/L=Helsinki/O=Verifa Oy/OU=IT/CN=server.test.com/emailAddress=test@test.com" -passout pass:test123 | |
openssl x509 -req -CA rootCA.crt -CAkey rootCA.key -in selfsigned.csr -out selfsigned.crt -days 365 -CAcreateserial -passin pass:test123 |
kubectl get obj certs -o jsonpath="{.data['tls\.key']}" |
# List WSLs with versions | |
wsl --list --verbose | |
# Convert an existing WSL `Ubuntu-22.04` from WSL2 to WSL1 | |
wsl --set-version Ubuntu-22.04 1 |
name: listfiles | |
on: | |
workflow_dispatch: | |
jobs: | |
list-png-files: | |
runs-on: ubuntu-latest | |
outputs: | |
file: ${{ steps.set-files.outputs.file }} |
NODE | SERVICES | IP | OS | HARDWARE | |
---|---|---|---|---|---|
Admin node | Orderer/fabric-ca | 192.168.10.142 | Ubuntu 18.04 | 1vCPU/1GB RAM/80GB HDD | |
Peer node | Peer0 | 192.168.10.143 | Ubuntu 18.04 | 1vCPU/1GB RAM/80GB HDD |
APPLICATION | VERSION | |
---|---|---|
elastic | 7.1 | |
golang | 1.11 | |
docker | 18.09 | |
docker-compose | 1.23 | |
python | 2.7 |
version: '3' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.2 | |
environment: | |
- cluster.name=docker-cluster | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
ulimits: |