summaryrefslogtreecommitdiff
path: root/utils/gen-ipa-priv-key.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/gen-ipa-priv-key.sh')
-rwxr-xr-xutils/gen-ipa-priv-key.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/gen-ipa-priv-key.sh b/utils/gen-ipa-priv-key.sh
new file mode 100755
index 00000000..919751f2
--- /dev/null
+++ b/utils/gen-ipa-priv-key.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-or-later
+# Copyright (C) 2020, Google Inc.
+#
+# Author: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
+#
+# gen-ipa-priv-key.sh - Generate an RSA private key to sign IPA modules
+
+key="$1"
+
+openssl genpkey -algorithm RSA -out "${key}" -pkeyopt rsa_keygen_bits:2048