Skip to content

Instantly share code, notes, and snippets.

View WasimAhmad's full-sized avatar
🎯
Focusing

Waseem Ahmad Mughal WasimAhmad

🎯
Focusing
View GitHub Profile
Enterprise: NJVYC-BMHX2-G77MM-4XJMR-6Q8QF
Professional: KBJFW-NXHK6-W4WJM-CRMQB-G3CDH
Keys are generic ones. These are the same from MSDN account.
Product Key : -6Q8QF
Validity : Valid
Product ID : 00369-90000-00000-AA703
Advanced ID : XXXXX-03699-000-000000-00-1032-9200.0000-0672017
@WasimAhmad
WasimAhmad / Download a Windows 10 ISO.md
Created December 19, 2019 13:01 — forked from CHEF-KOCH/Download a Windows 10 ISO.md
Download a Windows 10 ISO directly from Microsoft (without the media creation tool)

Installing DLU via WSL

You should expect to put aside a few hours at least if you're unfamiliar with Linux.

First "find" the unpacked client (version: 1.10.64) on the internet. Totally unrelated, Google Docs is a very nice editor :). Good known hashes can be found here. This guide is a work-in-progress.

Setup WSL v1

Open command prompt (cmd.exe) to install WSL v1:

[req]
default_bits = 2048
prompt = no
default_md = sha256
distinguished_name = dn
[dn]
C=US
ST=MN
L=Eagan
@WasimAhmad
WasimAhmad / v3.ext
Created February 14, 2022 16:46 — forked from techforum-repo/v3.ext
authorityKeyIdentifier=keyid,issuer
basicConstraints=CA:FALSE
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
subjectAltName = @alt_names
[alt_names]
DNS.1 = myexample.com
DNS.2=sub.myexample.com
DNS.3=myexample1.com
DNS.4=localhost
@WasimAhmad
WasimAhmad / app.js
Created February 14, 2022 16:46 — forked from techforum-repo/app.js
var express = require('express')
const path = require('path')
const https = require('https');
const fs = require('fs');
var app = express()
app.get('/index.html', function (req, res) {

Self Signed SSL

Create an RSA-4096 key and save it to a file rootCA.key

openssl.exe genrsa -aes256 -out rootCA.key 4096

Create a root certificate through the key generated

openssl.exe req -x509 -new -nodes -key rootCA.key -sha256 -days 1460 -out rootCA.pem -config server.csr.cnf