Friendly OAuth2 Server
Sign Up Sign In
Index Documentation Download Check license
Friendly oAuth2 server documentation
Friendly oAuth2 server documentation
Setup and running
Setup and running test version
Setup and running production version
Setup https protocol
Setup other database
Working with OAuth2 and OpenId Methods
OAuth2
OAuth2 code flow
OAuth2 implicit flow
OAuth2 user password flow
OAuth2 client credential flow
OAuth2 refresh token flow
OpenId
OpenId code flow
OpenId implicit flow
Client secret authentication
Client secret basic
Client secret post
Client secret jwt
Client key jwt
None
Extra
OAuth2 dynamic registration
OAuth2 revoke
OAuth2 introspect
OAuth2 jwks.json
OAuth2 .well-known
OAuth2 backchannel_logout
OAuth2 userinfo
Extra settings
Control panel
User section
User sessions 1
User sessions 2
User info
Change password
Delete account
Client section
List of registered clients
Number of authorizations per day
New client registration
Admin section
Client authorizations
Auth settings
Users
Clients
Administrators
Roles
Limits
Create user
Setting up the https protocol
Symbols: DOMAIN — your domain, for example prodmicroservice.com KEY_STORE_PASSWORD — password you created 1) Open the folder where you have the certificate DOMAIN.crt and privatekey private.key.
2) Open a terminal and enter the command to generate the private key and certificate store: openssl pkcs12 -export -out DOMAIN.p12 -inkey private.key -in DOMAIN.crt -password pass:KEY_STORE_PASSWORD Enter alias — DOMAIN, if required. As a result, you should have a file DOMAIN.p12
3) Then, enter the command in the terminal to transfer to java storage: keytool -importkeystore -srckeystore DOMAIN.p12 -srcstoretype pkcs12 -destkeystore DOMAIN.jks Enter password — KEY_STORE_PASSWORD and alias — DOMAIN, if required. As a result, you should have a file DOMAIN.jks
We are done with the formation of the java storage of the private key and certificate, now we move on to setting up the https authorization server. 4) In the jar file, find the file application.properties and add additional lines to it
server.ssl.key-store=classpath:DOMAIN.jks server.ssl.key-store-type=pkcs12 server.ssl.key-store-password=KEY_STORE_PASSWORD server.ssl.key-password=KEY_STORE_PASSWORD server.ssl.key-alias=DOMAIN server.ssl.enabled=true
Save this file. And add the file DOMAIN.jks there. Your authorization server is now configured with the https protocol.
Friendly OAuth2 Server
prodmicroservice.com
2024