提交 65db8044 编写于 作者: V vit9696

Docs: Add signing instructions

上级 9306b21f
......@@ -31,7 +31,7 @@
frame=tb,
columns=fullflexible,
captionpos=b,
morekeywords={git, make, build, ioreg, grep, nvram, sort, sudo, diskutil, gfxutil},
morekeywords={git, make, build, ioreg, grep, nvram, sort, sudo, diskutil, gfxutil, strings, dd, cut},
literate =
{"}{{\textquotedbl}}1
{'}{{\textquotesingle}}1
......@@ -1381,19 +1381,18 @@ nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:boot-log |
\tightlist
\item Create \texttt{vault.plist}.
\item Create a new RSA key.
\item Embed it into \texttt{OpenCore.efi}.
\item Embed RSA key into \texttt{OpenCore.efi}.
\item Create \texttt{vault.sig}.
\end{itemize}
Can look as follows:
FIXME!
\begin{lstlisting}[label=createvault, style=ocbash]
ioreg -lw0 -p IODeviceTree -n efi -r -x | grep device-properties |
sed 's/.*<//;s/>.*//' > /tmp/device-properties.hex &&
gfxutil /tmp/device-properties.hex /tmp/device-properties.plist &&
cat /tmp/device-properties.plist
cd /Volumes/EFI/EFI/OC
~/create_vault.sh .
~/RsaTool -sign vault.plist vault.sig vault.pub
off=$(($(strings -a -t d OpenCore.efi | grep "=BEGIN OC VAULT=" | cut -f1 -d' ')+16))
dd of=OpenCore.efi if=vault.pub bs=1 seek=$off count=520 conv=notrunc
rm vault.pub
\end{lstlisting}
\end{enumerate}
......
......@@ -45,6 +45,8 @@ package() {
cp BOOTx64.efi tmp || exit 1
cp "${selfdir}/Docs/Configuration.pdf" tmp || exit 1
cp "${selfdir}/Docs/Sample.plist" tmp || exit 1
cp "${selfdir}/UDK/OcSupportPkg/Tools/RsaTool/RsaTool" tmp || exit 1
cp "${selfdir}/UDK/OcSupportPkg/Tools/Vault/create_vault.sh" tmp || exit 1
pushd tmp || exit 1
zip -qry ../"OpenCore-v${ver}-${2}.zip" * || exit 1
popd || exit 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册