Problems installing policy from Mac HTTPS DP

prbsparx
Contributor II

I've been working with Jamf Support on this but we haven't been able to find a solution so far.

I have a MacOS 10.11.6 server running Server.app 5.2. JSS is 9.6
When trying to run a "install package" policy through Self Service (haven't tested automatic policy) it fails with the following debug error:
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)

Based on this error, I assumed it was a problem with the certificate. So I recreated it:

We have an internal certificate authority, then an intermediate, and then the certificate installed on the server. I created the certificate's key as a JKS, then created the CSR, requested the signed cert, downloaded root CAs, imported the Root CAs into the JKS, then imported the signed cert into the JKS.

Once everything was created in the JKS, I exported it as a P12 using openssl.
I then imported that certificate into Server.app, it imported the key, cert, and two additional certs (the intermediate and root) I then configured the default https web site to use the certificate.

That didn't fix it.

A few random things I've tested (each inidividual)
Turn off proxy (all our computers use auto proxy) - failed.
Proxy the Mac through Charles SSL Proxy to try to diagnose - succeeded (because of self-signed cert being installed and trusted?)
The Root CA was originally installed in the login keychain on the client Mac. Moved the root CA to the system keychain - failed.
Tested the https server using nscurl to make sure I'm not running into App Transport Security issues. It passed all tests.

1 REPLY 1

prbsparx
Contributor II

Seems to be related to Server.app 5.2 and the Proxy Service that now exists, we're seeing a large number of errors in there:
[Fri Jun 09 14:22:46.563055 2017] [ssl:info] [pid 501] [client 10.19.41.7:54615] AH01964: Connection to child 2 established (server FQDN1)
[Fri Jun 09 14:22:46.563602 2017] [ssl:debug] [pid 501] ssl_engine_kernel.c(2120): [client 10.19.41.7:54615] AH02043: SSL virtual host for servername SERVERFQDN2 found
[Fri Jun 09 14:22:46.609800 2017] [ssl:info] [pid 501] [client 10.19.41.7:54615] AH02008: SSL library error 1 in handshake (server FQDN1)
[Fri Jun 09 14:22:46.609925 2017] [ssl:info] [pid 501] SSL Library Error: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca (SSL alert number 48)
[Fri Jun 09 14:22:46.609961 2017] [ssl:info] [pid 501] [client 10.19.41.7:54615] AH01998: Connection closed to child 2 with abortive shutdown (server SERVERFQDN2:443)
[Fri Jun 09 14:22:46.620910 2017] [ssl:info] [pid 502] [client 10.19.41.7:54616] AH01964: Connection to child 3 established (server FQDN1)
[Fri Jun 09 14:22:46.621432 2017] [ssl:debug] [pid 502] ssl_engine_kernel.c(2120): [client 10.19.41.7:54616] AH02043: SSL virtual host for servername SERVERFQDN2 found
[Fri Jun 09 14:22:46.667327 2017] [ssl:info] [pid 502] [client 10.19.41.7:54616] AH02008: SSL library error 1 in handshake (server FQDN1)
[Fri Jun 09 14:22:46.667364 2017] [ssl:info] [pid 502] SSL Library Error: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca (SSL alert number 48)
[Fri Jun 09 14:22:46.667382 2017] [ssl:info] [pid 502] [client 10.19.41.7:54616] AH01998: Connection closed to child 3 with abortive shutdown (server SERVERFQDN2:443)