Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
frameworks
/
base
/
bd9e2df5282efb8cd64414d72a29ab2719bd84d2
/
.
/
tools
/
signedconfig
/
debug_sign.sh
blob: 3a2814a62aff21e6cae562ea3a92cd11831939c3 [
file
] [
log
] [
blame
]
#!/bin/bash
# Script to sign data with the debug keys. Outputs base64 for embedding into
# APK metadata.
openssl dgst
-
sha256
-
sign $
(
dirname $0
)/
debug_key
.
pem
<(
echo
-
n
"$1"
|
base64
-
d
)
|
base64
-
w
0
echo