Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4421

OpenVPN didn't generate the key with "--genkey --tls-crypt"

$
0
0

I expect the "--genkey --tls-crypt" will generate a key in the "/tmp/test.key", but it will not write result to the target file and only prints the result to the console.

Here is the "--genkey --tls-crypt" and "cat" for testing:

# openvpn --genkey --tls-crypt /tmp/test.key## 2048 bit OpenVPN static key#-----BEGIN OpenVPN Static key V1-----65bc8c4654ddd1e39c7b2fb1c5d7b6c7b551e4f48a109efb3f142b442eb7c8083428ffc3a41a4fa52464cc8556469c5f69d0736db7f37c56788da8f3995399c98bd664f9e669683805591a9a8fa1b73e42058e66695f6b735fc4a52dbf26b1db386811f79c629864c7b7169625e8d75a30be70f1578eaa1340828de4eb9e2b4f68f5f276e451429fd706e54f08bc08d2538c0c66590fb6b5204b9b6f78634f52dac5be0c419996cccc2bc9add38b0e334891a1f11b772ec3a13aed5f0ba678d0e7f3497b39c549c8cfddbf28205bf24fa23c07b58109d8f0efe868e35be8b3dac4f7073dc4031d7d600790c4370189b457d8453ed1f565764ef69aeea4f85039-----END OpenVPN Static key V1-----# cat /tmp/test.keycat: /tmp/test.key: No such file or directory# 

How to generate the key "/tmp/test.key" with "--genkey --tls-crypt" in OpenVPN? What's the correct way for using the "--genkey --tls-crypt" in OpenVPN?


Viewing all articles
Browse latest Browse all 4421

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>