OpenVPN server CA and Sub-CA

Scripts to manage certificates or generate config files

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
User avatar
imjebran
OpenVPN Power User
Posts: 75
Joined: Tue Jul 03, 2012 10:38 am

OpenVPN server CA and Sub-CA

Post by imjebran » Mon Jan 04, 2016 4:15 pm

Hello,

I have a root CA just for example CA1 and I also sign sub CA on behalf of root CA, my Sub-CA is CA2, and I do stacked both CAs in a single file, I have test that following scenarios,

Server side, set as below client can connect by selecting same CA1.crt CA file.

Code: Select all

ca "C:\\Program Files\\OpenVPN\\config\\ca1.crt"
Server side, set as below client can connect by selecting same CA1.crt CA file, but unable to connect when they select only CA2.crt

Code: Select all

ca "C:\\Program Files\\OpenVPN\\config\\ca2.crt"
Server side, set as below client can connect by selecting same stacked.crt CA file, and CA1 file, but still unable to connect when select only CA2.crt from client devices.

Code: Select all

ca "C:\\Program Files\\OpenVPN\\config\\stacked.crt"
my requirement is client can connect even they select CA1.crt and CA2.crt from their client devices need your help what configuration i have to do at server and client side to meet my requirement.

Regards,
Jebran.

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: OpenVPN server CA and Sub-CA

Post by Traffic » Mon Jan 04, 2016 6:07 pm

It is complicated stuff and easy to get wrong .. Please read this:
https://community.openvpn.net/openvpn/w ... ate_Chains

Post Reply