Skip to content

Commit

Permalink
ID-4185: Trust norwegian eidas-proxy signing certificate (#19)
Browse files Browse the repository at this point in the history
Also allow selfsigned certificates
  • Loading branch information
oyri authored May 23, 2024
1 parent 5c34338 commit 2c71270
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Binary file added docker/demo-config/connector-eidasKeyStore.p12
Binary file not shown.
8 changes: 7 additions & 1 deletion docker/dev.CA.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ RUN sed -i 's/localhost:8080/eidas-demo-ca:8080/g' $config_path/proxy/eidas.xml
RUN sed -i 's/localhost:8080\/SP/eidas-demo-ca:8080\/SP/g' $config_path/sp/sp.properties
RUN sed -i 's/localhost:8080/eidas-demo-ca:8080/g' $config_path/specificConnector/specificConnector.xml
RUN sed -i 's/localhost:8080/eidas-demo-ca:8080/g' $config_path/specificProxyService/specificProxyService.xml

RUN sed -i '/<\/properties/i \
<entry key="disallow.self.signed.certificate">false</entry> ' $config_path/connector/eidas.xml
RUN sed -i '/<\/properties/i \
<entry key="disallow.self.signed.certificate">false</entry> ' $config_path/proxy/eidas.xml

RUN sed -i 's/localhost:8080\/EidasNodeConnector\/ServiceProvider/eidas-demo-ca:8080\/EidasNodeConnector\/ServiceProvider/g' $config_path/sp/sp.properties
RUN sed -i 's/localhost:8080\/EidasNodeProxy\/ServiceMetadata/eidas-demo-ca:8080\/EidasNodeProxy\/ServiceMetadata/g' $config_path/connector/eidas.xml
Expand All @@ -49,6 +52,9 @@ RUN sed -i 's/service6.metadata.url">http:\/\/localhost:9080\/EidasNodeProxy/ser
COPY docker/demo-config/MetadataFetcher_Connector.properties $config_path/connector/metadata/MetadataFetcher_Connector.properties
COPY docker/demo-config/MetadataFetcher_Service.properties $config_path/proxy/metadata/MetadataFetcher_Service.properties

# copy keystore with trusted norwegian certificate
COPY docker/demo-config/connector-eidasKeyStore.p12 $config_path/connector/keystore/eidasKeyStore.p12

FROM tomcat:9.0-jre11-temurin-jammy

# Copy setenv.sh to /usr/local/tomcat/bin/
Expand Down
3 changes: 3 additions & 0 deletions docker/dev.CB.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ RUN sed -i 's/service6.metadata.url">http:\/\/localhost:9080\/EidasNodeProxy/ser
COPY docker/demo-config/MetadataFetcher_Connector.properties $config_path/connector/metadata/MetadataFetcher_Connector.properties
COPY docker/demo-config/MetadataFetcher_Service.properties $config_path/proxy/metadata/MetadataFetcher_Service.properties

# copy keystore with trusted norwegian certificate
COPY docker/demo-config/connector-eidasKeyStore.p12 $config_path/connector/keystore/eidasKeyStore.p12

FROM tomcat:9.0-jre11-temurin-jammy

# change tomcat port
Expand Down

0 comments on commit 2c71270

Please sign in to comment.