Closed renepardon closed 5 years ago
When using HTTP it looks like this:
I'd recommend checking out https://github.com/UniconLabs/dockerized-idp-testbed. It has a full working impl.
@renepardon: I ran into the same issue, after running
docker run -it -v $(pwd):/ext-mount --rm unicon/shibboleth-idp init-idp.sh
# here I was prompted for two passphrases; I typed "secret" for both
to generate the customized-shibboleth-idp
directory, I overlooked these extra steps to set up that SSL keystore (I left the passphrase blank, just tapping enter):
openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out certificate.pem
openssl x509 -text -noout -in certificate.pem
openssl pkcs12 -inkey key.pem -in certificate.pem -export -out idp-browser.p12
sudo mv idp-browser.p12 customized-shibboleth-idp/credentials
sudo docker run -p 4443:4443 -p 8443:8443 -v $PWD/customized-shibboleth-idp/:/opt/shibboleth-idp/ -e JETTY_BROWSER_SSL_KEYSTORE_PASSWORD= -e JETTY_BACKCHANNEL_SSL_KEYSTORE_PASSWORD=secret unicon/shibboleth-idp
The env vars are not so obvious to me, but note that one is "secret" from the first step, and one is blank from how I made the keystore in the second step. I feel like one is missing, since I thought I was prompted twice in the initial setup… but anyway, from just running that much in an empty directory, I got it to start up without error and I can go to https://localhost:8443/ and look at a Jetty 404 page.
Since it is SSL, you're going to see undecoded binary like that when you try to use HTTP in the browser. If you trip on that a lot, you could map it to port the standard HTTPS port 443 instead.
I'll give it a try within the next couple of weeks @paulerickson :)
I've created the IdP metadata/credentials as explained within the README.md of this repository but receive the following error:
An example repository can be found here: https://github.com/renepardon/shibboleth-idp I used
changeme
as password when being asked andlocalhost
for the configuration of the IdP.So I'm not able to access the IdP through
https://localhost/idp/