References: <20210520150932.2565217-1-arne@...1227...> <20210520150932.2565217-2-arne@...1227...> <46a3a2a9-83a4-2fbe-2fd4-684a51c001f9@...1227...> From: Jan Just Keijser Message-ID: <624a3ba5-aa78-144b-ff48-17ccd522588c@...1147...> Date: Thu, 20 May 2021 23:05:32 +0200 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Subject: Re: [Openvpn-devel] [PATCH v2 2/2] Add detailed man page section to setup a OpenVPN setup with peer-fingerprint List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: 8bit To: tincantech Cc: "openvpn-devel@lists.sourceforge.net" Hi, On 20/05/21 21:49, tincantech via Openvpn-devel wrote: > >>> Hi, >>> again, I do not understand why openvpn choose to switch to .pem >>> for this tutorial.  PEM -> Private Email, which this is not. >>> You have a certificate and a key and every other openvpn tutorial >>> on openvpn and probably the entire planet uses .crt and .key. >>> This seems to be a poor decision in my opinion. >> pem as extension for keys is pretty common and specifies more the >> encoding than the type. E.g. there is also the der encoding. >> >> Arne > I accept the principle but openvpn *only* uses PEM-enc, that I know of. > > So, why switch to .pem when it has never been used before by openvpn? > > If you are all happy to let it go that way then so-be-it, > Hopefully this clarifies things: - the default output format of OpenSSL is PEM-encoded ; openssl uses the default extension .pem - the OpenVPN .crt and .key files are ALSO PEM-encoded by default, but they've just been named differently by the easy-rsa tools to ensure that the files can be easily loaded on Windows - FTR: nearly all webservers I have ever seen are configured to use a hostcert.pem and hostkey.pem and my guess is that there are (still) more  Linux-based webservers out there than OpenVPN clients and servers. Having said that, I do agree that after using .crt/.key files left and right (to accomodate Windows users) for over 15 years, it does seem confusing to start using files named .pem for peer-fingerprinting all of  sudden. On the other hand, with peer-fingerprinting you don't  *HAVE* a .crt file (at least, you don't need one, technically) but only a .key file. So choosing a different extension for peer-fingerprinting does have its merits. HTH, JJK