GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#! /bin/sh
|
||||
|
||||
|
||||
echo "======================================================================================"
|
||||
echo "| rsa4096pem |"
|
||||
echo "======================================================================================"
|
||||
# generate rsa pub key and private key
|
||||
if [ -f rsa4096pem/rsa_pub_4096_sha256.txt ]; then
|
||||
echo "use old rsa4096pem/rsa_pub.bin rsa4096pem/rsa_pub_4096_sha256.txt"
|
||||
else
|
||||
echo "gen new rsa4096pem/rsa_pub.bin rsa4096pem/rsa_pub_4096_sha256.txt"
|
||||
mkdir -p rsa4096pem
|
||||
openssl genrsa -out rsa4096pem/rsa_priv_4096.pem 4096
|
||||
openssl rsa -in rsa4096pem/rsa_priv_4096.pem -pubout -out rsa4096pem/rsa_pub_4096.pem
|
||||
fi
|
||||
Reference in New Issue
Block a user