Skip to content

Instantly share code, notes, and snippets.

View cfergeau's full-sized avatar

Christophe Fergeau cfergeau

View GitHub Profile
@cfergeau
cfergeau / fd.go
Created October 12, 2022 09:53
go garbage collector closing reused fds
package main
import (
"fmt"
"os"
"runtime"
"time"
)
func finalizer(f *os.File) {

Dealing with expired certificates

  • Start the crc instance with the expired certificates (even if it's non-functional)
  • Download both scripts to the machine running the crc instance
  • Run fix-certs.sh
  • Once it successfully runs, the crc instance should become operational after a few minutes

Note: This script has been tested on linux and macos