Hi All.
I'm trying to set up OpenVPN to use Microsoft CA. I've set up fully functional PKI and got my certificate on the smartcard. Trying to connect to the OpenVPN server throws an error with informations in the openvpn.log as below:
WRRWWWRRWWWWRWRFri Nov 24 17:25:56 2017 us=489982 71.234.216.68:13343 VERIFY ERROR: depth=0, error=unhandled critical extension: DC=local, DC=DOMAIN, CN=Users, CN=MyUserName
Fri Nov 24 17:25:56 2017 us=490236 71.234.216.68:13343 OpenSSL: error:14089086:SSL routines:ssl3_get_client_certificate:certificate verify failed
Fri Nov 24 17:25:56 2017 us=490270 71.234.216.68:13343 TLS_ERROR: BIO read tls_read_plaintext error
Fri Nov 24 17:25:56 2017 us=490288 71.234.216.68:13343 TLS Error: TLS object -> incoming plaintext read error
Fri Nov 24 17:25:56 2017 us=490305 71.234.216.68:13343 TLS Error: TLS handshake failed
I understand that this is related to the certificate configuration. The part mentioned in log "DC=local, DC=DOMAIN, CN=Users, CN=MyUserName" is a Fully Distinguished Name field value from the cert. This information is build from the active directory information set.
Curious is fact that I've setup working solution based on openVPN and MS AD CA and it worked flawlessly. I cant see any significant differencies between that old deployment and new one. My server config is as follows:
port 1194
proto udp
dev tun
ca cert/rootCACert.crt
cert cert/certificate.crt
key cert/privateKeyDecrypted.key
dh cert/dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.1.0 255.255.255.0"
push "dhcp-option DNS 192.168.1.3"
keepalive 10 120
cipher AES-256-CBC
comp-lzo
persist-key
persist-tun
status /var/log/openvpn-status.log
log-append /var/log/openvpn.log
verb 5
Could someone help me with this?
Thank You
Smok.