Question about content of my .ovpn file downloaded form access server
Posted: Tue Sep 19, 2023 2:12 pm
Hi,
For my own understanding I would like to know what each key/certificate is inside the ".ovpn" file I have downloaded from my access server I have installed on Debian 10. Some of the keys are commented out and some are in-line. Apologies for noob question just trying to wrap my head around it all. I have deliberately shortened all the keys.
Cheers,
------------------------------------------------------------------------------------------------------------------------------------------------------
1) First item in the fie commented out i think i understand, this is the web server certificate and i can find this @ "/usr/local/openvpn_as/etc/web-ssl/ca.crt"
# OVPN_ACCESS_SERVER_WEB_CA_BUNDLE_START
# -----BEGIN CERTIFICATE-----
# MIIBwDCCAUWgAwIBAgIEZQQnETAKBggqhkjOPQQDAjA4MTYwNAYDVQQDDC1PcGVu
# -----END CERTIFICATE-----
------------------------------------------------------------------------------------------------------------------------------------------------
2) I can find mention of this key in "/usr/local/openvpn_as/etc/db/.certs.db". If this the public certificate of the CA?
<ca>
-----BEGIN CERTIFICATE-----
MIIBeTCB/6ADAgECAgRlBCcLMAoGCCqGSM49BAMCMBUxEzARBgNVBAMMCk9wZW5W
-----END CERTIFICATE-----
</ca>
------------------------------------------------------------------------------------------------------------------------------------------------
3) I can find mention of this key in "/usr/local/openvpn_as/etc/db/.certs.db". If this the public certificate of the vpn server?
<cert>
-----BEGIN CERTIFICATE-----
MIIBoDCCASWgAwIBAgIILwJxQOI4wgcwCgYIKoZIzj0EAwIwFTETMBEGA1UEAwwK
-----END CERTIFICATE-----
</cert>
------------------------------------------------------------------------------------------------------------------------------------------------
4) i'm not quite sure what this is and i cant find it on the access server. Is this a randomly assigned private key generates by the access server for the client to using as a private key?
<key>
-----BEGIN PRIVATE KEY-----
MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDBx/PBssPOq1G1aHEnQ
-----END PRIVATE KEY-----
</key>
------------------------------------------------------------------------------------------------------------------------------------------------
5) TLS crypt key is used for that encryption and decryption of the TLS handshake on both the server and client??? I can find this key on my access server in ""/usr/local/openvpn_as/etc/db/.certs.db"
<tls-crypt>
#
# 2048 bit OpenVPN static key (Server Agent)
#
-----BEGIN OpenVPN Static key V1-----
15da800fe2ddb6ec18f9e3fc2ad346d4
</tls-crypt>
For my own understanding I would like to know what each key/certificate is inside the ".ovpn" file I have downloaded from my access server I have installed on Debian 10. Some of the keys are commented out and some are in-line. Apologies for noob question just trying to wrap my head around it all. I have deliberately shortened all the keys.
Cheers,
------------------------------------------------------------------------------------------------------------------------------------------------------
1) First item in the fie commented out i think i understand, this is the web server certificate and i can find this @ "/usr/local/openvpn_as/etc/web-ssl/ca.crt"
# OVPN_ACCESS_SERVER_WEB_CA_BUNDLE_START
# -----BEGIN CERTIFICATE-----
# MIIBwDCCAUWgAwIBAgIEZQQnETAKBggqhkjOPQQDAjA4MTYwNAYDVQQDDC1PcGVu
# -----END CERTIFICATE-----
------------------------------------------------------------------------------------------------------------------------------------------------
2) I can find mention of this key in "/usr/local/openvpn_as/etc/db/.certs.db". If this the public certificate of the CA?
<ca>
-----BEGIN CERTIFICATE-----
MIIBeTCB/6ADAgECAgRlBCcLMAoGCCqGSM49BAMCMBUxEzARBgNVBAMMCk9wZW5W
-----END CERTIFICATE-----
</ca>
------------------------------------------------------------------------------------------------------------------------------------------------
3) I can find mention of this key in "/usr/local/openvpn_as/etc/db/.certs.db". If this the public certificate of the vpn server?
<cert>
-----BEGIN CERTIFICATE-----
MIIBoDCCASWgAwIBAgIILwJxQOI4wgcwCgYIKoZIzj0EAwIwFTETMBEGA1UEAwwK
-----END CERTIFICATE-----
</cert>
------------------------------------------------------------------------------------------------------------------------------------------------
4) i'm not quite sure what this is and i cant find it on the access server. Is this a randomly assigned private key generates by the access server for the client to using as a private key?
<key>
-----BEGIN PRIVATE KEY-----
MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDBx/PBssPOq1G1aHEnQ
-----END PRIVATE KEY-----
</key>
------------------------------------------------------------------------------------------------------------------------------------------------
5) TLS crypt key is used for that encryption and decryption of the TLS handshake on both the server and client??? I can find this key on my access server in ""/usr/local/openvpn_as/etc/db/.certs.db"
<tls-crypt>
#
# 2048 bit OpenVPN static key (Server Agent)
#
-----BEGIN OpenVPN Static key V1-----
15da800fe2ddb6ec18f9e3fc2ad346d4
</tls-crypt>