<html><head></head><body><div>Hi Everyone,</div><div><br></div><div>I've been working to convert one of our existing Shibboleth v2 installations to v3. Part of the process is to stop fronting the web container with Apache and instead use the container itself.</div><div><br></div><div>Accordingly, I have keys, X509 certs, etc for the existing configuration that have worked fine in Apache, but I'm having a difficult time getting them to work with Jetty using the jetty-base that ships with Shibboleth 3. I was hoping to avoid using a keystore and just use them directly, but from what I can tell this isn't possible. (Please correct me if I'm wrong here.)</div><div><br></div><div>From what I've gathered, as the keys and certs are separate files, that I need to convert them to PKCS12. I've done so based on thes example from Jetty's documentation:</div><div><br></div><div><a href="http://www.eclipse.org/jetty/documentation/current/configuring-ssl.html#loading-keys-and-certificates-via-pkcks12">http://www.eclipse.org/jetty/documentation/current/configuring-ssl.html#loading-keys-and-certificates-via-pkcks12</a></div><div><br></div><div>cat cert.crt intermediate-reverse.crt > cert-chain.txt</div><div>openssl pkcs12 -export -inkey example.key -in cert-chain.txt -out example.pkcs12</div><div><br></div><div>The Incommon intermediates we get have the rootCA included within, and I reversed it from the original so the order within the intermediate-reverse.crt is intermediate -> rootCA, as they specify is needed.</div><div><br></div><div>Then I use keytool like this:</div><div>keytool -importkeystore -srckeystore jetty.pkcs12 -srcstoretype PKCS12 -destkeystore keystore</div><div><br></div><div>And then I edit jetty-base/start.d/idp.ini to have the jetty.browser.keystore.path point to the absolute location of the certificate, in JKS format, and then I set the password and the keystore type to JKS.</div><div><br></div><div>Then when I start Jetty up, invariably, I get complaints about the keystore format being invalid. I have also tried using keystore to output PKCS12 (and setting the format and filename accordinglly in idp.ini), using keystore to list out the keystore with success, and as a troubleshooting step I've deliberately put in the wrong password for the keystore to see if it's any different, and it responds by saying the password is wrong, so it obviously can read it in some capacity, it just never accepts it as valid.</div><div><br></div><div>Am I on the right track for this? I know this is more Jetty related than Shibboleth, but I'm at a loss as the to what to try next.</div><div><br></div><div>Thanks for any help you guys could render on this, I spent the better part of yesterday trying to work this out and haven't been successful thus far.</div><div class="-x-evo-signature-wrapper"><span><pre>-- 
Brandon McKean
IT / Systems
Linux Administrator
(540)568-4235</pre></span></div></body></html>