Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ipv6 issues ci #670

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions org/mozilla/jss/tests/SSLClientAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private void generateCerts(CryptoManager cm, int serialNum) {
// generate server cert
kpg.initialize(keyLength);
KeyPair serverPair = kpg.genKeyPair();
Certificate serverCert = makeCert("CACert", "localhost",
Certificate serverCert = makeCert("CACert", "127.0.0.1",
serialNum+1, caPair.getPrivate(), serverPair.getPublic(),
serialNum, null);
nssServerCert = cm.importCertPackage(
Expand Down Expand Up @@ -329,7 +329,7 @@ private void testConnection() throws Exception {

// connect to the server
System.out.println("client about to connect");
SSLSocket sock = new SSLSocket("localhost", port);
SSLSocket sock = new SSLSocket("127.0.0.1", port);
if( useNickname ) {
sock.setClientCertNickname(clientCertNick);
System.out.println("Client specified cert by nickname");
Expand Down
2 changes: 2 additions & 0 deletions tools/Dockerfiles/centos_8
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ RUN true \
&& dnf module enable -y pki-deps maven javapackages-tools \
&& dnf build-dep -y jss \
&& mkdir -p /home/sandbox \
&& dnf install -y net-tools \
&& ip addr show \
&& dnf clean -y all \
&& rm -rf /usr/share/doc /usr/share/doc-base \
/usr/share/man /usr/share/locale /usr/share/zoneinfo \
Expand Down
2 changes: 2 additions & 0 deletions tools/Dockerfiles/debian_jdk11
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ RUN true \
libcommons-lang3-java libjaxb-api-java cmake \
zip unzip junit4 \
&& mkdir -p /home/sandbox \
&& apt-get install -y iproute2 \
&& ip addr show \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
Expand Down
2 changes: 2 additions & 0 deletions tools/Dockerfiles/ubuntu_jdk8
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ RUN true \
libcommons-lang3-java libjaxb-api-java cmake \
zip unzip junit4 \
&& mkdir -p /home/sandbox \
&& apt-get install -y iproute2 \
&& ip addr show \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
Expand Down