Skip to content

Instantly share code, notes, and snippets.

View grostarin's full-sized avatar

Julien Schneider grostarin

  • Oney Bank
  • Tourcoing, France
View GitHub Profile
@grostarin
grostarin / self-signed-certificate-with-custom-ca.md
Created October 20, 2021 13:29 — 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
const path = require('path');
const fs = require('fs');
const util = require('util');
// get application version from package.json
const appName = require('../package.json').name;
// promisify core API's
const readDir = util.promisify(fs.readdir);
const writeFile = util.promisify(fs.writeFile);
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { interval } from 'rxjs';
import { MatSnackBar } from '@angular/material';
import { environment } from '@environments/environment';
@Injectable({ providedIn: 'root' })
export class ThisSoftwareUpdateService {
constructor(