http://play.golang.org/p/dXBizm4xl3
package main
import (
"fmt"
"net"
"net/http"
"os"| #!/bin/bash | |
| # | |
| # Copyright (c) 2015 W. Mark Kubacki <wmark@hurrikane.de> | |
| # Licensed under the terms of the RPL 1.5 for all usages | |
| # http://www.opensource.org/licenses/rpl1.5 | |
| # | |
| set -e -o pipefail | |
| CAsubj="/C=DE/ST=Niedersachsen/L=Hannover/O=Dummy CA/CN=Sign-It-All" |
| package main | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "flag" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| ) |
http://play.golang.org/p/dXBizm4xl3
package main
import (
"fmt"
"net"
"net/http"
"os"Information can be put into dmi tables via some qemu-system hosts (x86_64 and aarch64). That information is exposed in Linux under /sys/class/dmi/id and can be read with dmidecode. The names are very annoyingly inconsistent. The point of this doc is to map them.
Example qemu cmdline:
qemu-system-x86_64 -smbios type=<type>,field=value[,...]
qemu-system-x86_64 -smbios type=0,vendor=superco,version=1.2.3