AnsweredAssumed Answered

Portal 10.6.1 fails to load CA-signed Server certificates (portaladmin)

Question asked by EIparraguirreESRI-NL-esridist Employee on Dec 15, 2018
Latest reply on Dec 20, 2018 by EIparraguirreESRI-NL-esridist

Portal 10.6.1 fails to load CA-signed Server certificates (portaladmin)


After configuring a Portal 10.6.1 machine from scratch, we have tried to load a CA-signed Server certificate through /portaladmin but it fails but there are not any error message to found anywhere. The web interface just plainly returns without an error.


Bias ProcMon we have founded that the loading process is started as:


"C:\Program Files\ArcGIS\Portal\framework\runtime\jre\bin\keytool.exe" -importkeystore -noprompt -destalias -destkeystore "C:\Program Files\ArcGIS\Portal\etc\ssl\portal.ks" -deststorepass portal.secret -srckeystore C:\Users\SVC-PO~1\AppData\Local\Temp\3f197469-451d-43a8-a642-af05d4b496c234558828440621475899837007361998\ -srcstoretype PKCS12 -srcstorepass ******** -srcalias * -destkeypass ******** -deststoretype JKS -J-Duser.language=en


Looking closely, the p12 container is temporarily store under $env:TEMP ... having in its name "Q:" ... and obviously this not  possible, as ProcMon states:


<Result>NAME INVALID</Result>


Our solution? Just use a line like:


"C:\Program Files\ArcGIS\Portal\framework\runtime\jre\bin\keytool.exe" -importkeystore -noprompt -destalias -destkeystore "C:\Program Files\ArcGIS\Portal\etc\ssl\portal.ks" -deststorepass ******** -srckeystore Q:\EWI\__Crypto__\Certificates\ -srcstoretype PKCS12 -srcstorepass ******** -srcalias "*" -destkeypass portal.secret -deststoretype JKS


And the value of "-srcalias" is the CommonName (CN) of the certificate.