Skip to content

Instantly share code, notes, and snippets.

View dnoliver's full-sized avatar

Nicolas Oliver dnoliver

  • Intel Corporation
  • Hillsboro, Oregon
View GitHub Profile
@dnoliver
dnoliver / enrollment.sh
Last active July 3, 2023 12:31
TPM 2.0 Device Identity Attestation Samples
#!/bin/bash
# Dependencies
# tpm2-tools-4.0.1-1.fc31.x86_64
# tpm2-tss-2.3.1-1.fc31.x86_64
# tpm2-tss-engine-master
set -euxo pipefail
export TPM2TOOLS_TCTI="device:/dev/tpmrm0"
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include "config.h"
#include "test.h"
#if HAVE_OPENSSL_SHA_H
@dnoliver
dnoliver / README.md
Last active June 2, 2021 22:35
LVM Encryption

LVM Encryption Examples

@dnoliver
dnoliver / README.md
Last active April 14, 2021 17:54
Trusted Boot
@dnoliver
dnoliver / README.md
Last active April 5, 2021 19:26
Keylime

Keylime

Setup on Microsoft Hyper-V VM

To setup in Microsoft Hyper-V VM, follow this Github Comment.

Patches Required

tpm2_main.patch

version: "3.7"
services:
node-red:
image: nodered/node-red:latest
environment:
- TZ=America/Argentina
ports:
- "1880:1880"
networks:
- node-red-net
@dnoliver
dnoliver / README.md
Last active December 9, 2020 18:41
Linux Integrity Measurement Architecture (IMA) Helpers

IMA Helper Scripts

@dnoliver
dnoliver / README.md
Created November 3, 2020 03:00
Qt Download Sample

Qt Download URL Sample

This sample have the code to download an image using http and https.

@dnoliver
dnoliver / Dockerfile
Last active October 12, 2020 12:47
Custom Application Using TPM PKCS11
FROM fedora:latest
RUN dnf install -y tpm2-pkcs11 tpm2-pkcs11-tools tpm2-tools gnutls-utils openssl-pkcs11 nodejs
VOLUME /etc/tpm2_pkcs11
VOLUME /root/test
WORKDIR /root/test
CMD bash