英文:
I have RSA encrypted private key with passphrase how do I decrypt the private key file
问题
基本上我想在Java命令中执行以下操作
```shell
openssl rsa -in enc_private.key -out private.key -passin pass:passphrase_xyz
我的加密密钥文件开头如下
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,59e5e15b3d9474e6
请协助。
<details>
<summary>英文:</summary>
Basically I want to do this in command in java
```shell
openssl rsa -in enc_private.key -out private.key -passin pass:passphrase_xyz
beginning of my encrypted key file looks like this
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,59e5e15b3d9474e6
please assist.
答案1
得分: 1
Runtime.getRuntime().exec("openssl rsa -in enc_private.key -out private.key -passin pass:passphrase_xyz");
Maybe a bash or PowerShell script would be better suited?
英文:
You could use
Runtime.getRuntime().exec("openssl rsa -in enc_private.key -out private.key -passin pass:passphrase_xyz");
Maybe a bash or PowerShell script would be better suited?
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论