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 issue 235 #294

Merged
merged 3 commits into from
Apr 11, 2024
Merged
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
21 changes: 14 additions & 7 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1333,14 +1333,21 @@ Wait until the following message displays on the `system` microservice console.
CWWKF0011I: The defaultServer server is ready to run a smarter planet. ...
----

You can check that the `system` microservice is secured against unauthenticated requests at the https://localhost:9444/system/api/heapsize URL. You can expect to see the following error in the console of the `system` microservice:
You can check that the `system` microservice is secured against unauthenticated requests at the https://localhost:9444/system/api/heapsize URL. Open another command-line session and run the following command:

ifdef::cloud-hosted[]
Open another command-line session and run the following command:
```bash
curl -k 'https://localhost:9444/system/api/heapsize'
```
endif::[]
[role='command']
----
curl -kf 'https://localhost:9444/system/api/heapsize'
----

You should see the following response:

[source, role=no_copy]
----
curl: (22) The requested URL returned error: 401
----

You can expect to see the following error in the console of the `system` microservice:

[source]
----
Expand Down
3 changes: 3 additions & 0 deletions finish/system/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<configuration>
<noPassword>true</noPassword>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
4 changes: 3 additions & 1 deletion finish/system/src/main/liberty/config/server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@
<webApplication contextRoot="/system" location="system.war"/>

<!-- Default SSL configuration enables trust for default certificates from the Java runtime -->
<ssl id="defaultSSLConfig" keyStoreRef="guideKeyStore" trustDefaultCerts="true" />
<ssl id="guideSSLConfig" keyStoreRef="guideKeyStore" trustDefaultCerts="true" />
<sslDefault sslRef="guideSSLConfig" />

</server>
Loading