Merge pull request #9167 from kwoyke/JAVA-1130-2
JAVA-1130: Improvements after review
This commit is contained in:
commit
c7b980c133
|
@ -4,3 +4,10 @@ This module contains articles about X.509 authentication with Spring Security
|
|||
|
||||
### Relevant Articles:
|
||||
- [X.509 Authentication in Spring Security](https://www.baeldung.com/x-509-authentication-in-spring-security)
|
||||
|
||||
###### Note for the [X.509 Authentication in Spring Security](https://www.baeldung.com/x-509-authentication-in-spring-security):
|
||||
All the ready to use certificates are located in the [store](store) directory. The application is already configured to use these files.
|
||||
This means the app works out of the box.
|
||||
|
||||
However, it's highly recommended that you follow the article step by step and generate all the needed files by yourself.
|
||||
This will let you understand the topic more deeply.
|
|
@ -1,4 +1,4 @@
|
|||
server.ssl.key-store=store/keystore.jks
|
||||
server.ssl.key-store=../store/keystore.jks
|
||||
server.ssl.key-store-password=changeit
|
||||
server.ssl.key-alias=localhost
|
||||
server.ssl.key-password=changeit
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
server.ssl.key-store=store/keystore.jks
|
||||
server.ssl.key-store=../store/keystore.jks
|
||||
server.ssl.key-store-password=changeit
|
||||
server.ssl.key-alias=localhost
|
||||
server.ssl.key-password=changeit
|
||||
|
@ -6,6 +6,6 @@ server.ssl.enabled=true
|
|||
server.port=8443
|
||||
spring.security.user.name=Admin
|
||||
spring.security.user.password=admin
|
||||
server.ssl.trust-store=store/truststore.jks
|
||||
server.ssl.trust-store=../store/truststore.jks
|
||||
server.ssl.trust-store-password=changeit
|
||||
server.ssl.client-auth=need
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,5 @@
|
|||
authorityKeyIdentifier=keyid,issuer
|
||||
basicConstraints=CA:FALSE
|
||||
subjectAltName = @alt_names
|
||||
[alt_names]
|
||||
DNS.1 = localhost
|
|
@ -1,30 +1,30 @@
|
|||
-----BEGIN CERTIFICATE-----
|
||||
MIIFDzCCAvegAwIBAgIUHBIbl/8i0uLnPD8BuNHninzcqEMwDQYJKoZIhvcNAQEL
|
||||
BQAw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CvNv7nGcP3+KWouZekBdn/iY5
|
||||
3Q8llL8WUMOHRwH6Raa6CV+vckCthUSpJdBAgGN44QtkA0iL/afVuE7VuTqsnCBA
|
||||
nbOz/ssZOP0TUVYwoRiDN50gJdB8IKMHZu9Px2m7fJuGgZ7QDe56+tePypgM9KDq
|
||||
yx4MKMP3Qc5xLE4pGM9SI1sGo+waW0+gPShNECHY4z8fOHw5bn+J1mrEWQbHfMGg
|
||||
Z/352qps5Hd6PljLAHmWAJL2nXS2zlXbccdYuv4ZtNIeDUT8eX/9NuJdXrITq9QQ
|
||||
oSBmyzH1bUJi2/mULcFy0Ibcu+OY/r8t67NrGKwLPLyozScwnFQE9SZR9d2cu6sC
|
||||
yxQtcd68vdvAIEDTk4DcSldeT44HIJ7RYQuBNZ5NU3SngMLDleec/3AZSUXTExFW
|
||||
TrbMTb+djM+XcTkRyO0wO0MYpjKGqN3sAGfppx0G9kgmJ9HB38nZfvqj3G1L9YFQ
|
||||
6kSA
|
||||
-----END CERTIFICATE-----
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue