spring-security-5-samples | English
基于 Maven 构建的 Spring Security 5 示例。
JRE 提供了一个简单的证书管理工具——keytool。它位于您的JRE_HOME\bin目录下。以下代码中的命令生成一个自签名证书并将其放入 PKCS12 KeyStore 中。除了 KeyStore 的类型之外,您还需要设置其有效期、别名以及文件名。在开始生成过程之前,keytool会要求您输入密码和一些其他信息,如下所示:
keytool -genkeypair -alias mytest -keyalg RSA -keysize 2048 \
-storetype PKCS12 -keystore mytest.p12 -storepass mypass \
-dname "CN=WebServer,OU=Unit,O=Organization,L=City,S=State,C=CN" -validity 3650
导出公钥文件:
keytool -list -rfc --keystore mytest.p12 -storepass mypass | \
openssl x509 -inform pem -pubkey > public.key
导出私钥文件:
keytool -importkeystore -srckeystore mytest.p12 -srcstorepass mypass \
-destkeystore private.p12 -deststoretype PKCS12 \
-deststorepass mypass -destkeypass mytest
#输入 storepass 密码
openssl pkcs12 -in private.p12 -nodes -nocerts -out private.key
-
https://github.com/spring-attic/spring-security-oauth2-boot/tree/main/samples
-
https://github.com/chensoul/spring-security-oauth2-boot-examples
-
https://github.com/eugenp/learn-spring-security/tree/lsso-module5/logout-with-oauth-and-oidc-end
-
https://coursehunters.online/t/learn-spring-security-oauth-the-master-class-part-1
-
https://coursehunters.online/t/learn-spring-security-oauth-the-master-class-part-2
-
https://coursehunters.online/t/learn-spring-security-oauth-the-master-class-part-3
-
https://coursehunters.online/t/learn-spring-security-oauth-the-master-class-part-4
-
https://coursehunters.online/t/learn-spring-security-oauth-the-certification-class-part-1
-
https://coursehunters.online/t/learn-spring-security-oauth-the-certification-class-part-2
-
https://coursehunters.online/t/learn-spring-security-oauth-the-certification-class-part-3
-
https://coursehunters.online/t/learn-spring-security-oauth-the-certification-class-part-4
非常欢迎提出请求 。
learn-spring-authorization-server 是在 Apache 2.0 许可 下发布的开源软件 。