mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
Tools: shim-to-sig.tool better outfile name when quoted CN
This commit is contained in:
parent
cb2e87ffa4
commit
bf9c7f4521
@ -100,7 +100,7 @@ if [ $? -ne 0 ]; then
|
||||
fi
|
||||
|
||||
# outfile name from cert CN
|
||||
certname=$(openssl x509 -noout -subject -inform der -in "$certfile" | sed 's/^subject=.*CN *= *//' | sed 's/[,\/].*//' | sed 's/ *//g') || { rm "$certfile"; exit 1; }
|
||||
certname=$(openssl x509 -noout -subject -inform der -in "$certfile" | sed 's/^subject=.*CN *=[ \"]*//' | sed 's/[,\/].*//' | sed 's/ *//g') || { rm "$certfile"; exit 1; }
|
||||
outfile="${certname}.pem"
|
||||
|
||||
openssl x509 -inform der -in "$certfile" -out "$outfile" || { rm "$certfile"; exit 1; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user