Skip to content

Instantly share code, notes, and snippets.

View kirilvasilev's full-sized avatar
👽

Kiril Vasilev kirilvasilev

👽
  • Sofia, Bulgaria
  • 13:44 (UTC +03:00)
View GitHub Profile
@kirilvasilev
kirilvasilev / self-signed-certificate-with-custom-ca.md
Created February 3, 2022 11:09 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@kirilvasilev
kirilvasilev / hero.ts
Created May 19, 2018 21:07 — forked from brennanMKE/hero.ts
Example of Mongoose with TypeScript and MongoDb
import * as mongoose from 'mongoose';
export let Schema = mongoose.Schema;
export let ObjectId = mongoose.Schema.Types.ObjectId;
export let Mixed = mongoose.Schema.Types.Mixed;
export interface IHeroModel extends mongoose.Document {
name: string;
power: string;