From 1ba2a8800ea16e49e0a21d79b8b06cfd914c63d9 Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 25 Sep 2020 11:58:03 -0700 Subject: [PATCH] Add section for building swtpm on Mac. --- docs/SWTPM.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/SWTPM.md b/docs/SWTPM.md index babd242..34256fd 100644 --- a/docs/SWTPM.md +++ b/docs/SWTPM.md @@ -57,6 +57,18 @@ git clone git@github.com:stefanberger/swtpm.git (cd swtpm && ./autogen.sh && make install) ``` +Note: On Mac OS X had to do the following first: + +``` +brew install openssl socat +pip3 install cryptography + +export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib" +export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include" + +# libtpms had to use --prefix=/usr/local +``` + Running swtpm ```