Skip to content

Commit

Permalink
set keystore for dashboard access.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrclemrkz committed Nov 2, 2018
1 parent 1445586 commit 00e2bad
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@
/docs/_site
/README.rst
/*venv


# keep away keystore files
is/files/*.jks
is/files/*.pem
47 changes: 46 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,47 @@
# Identity
### Identity
Identity management

## Prerequisite

# update configs

replace 'domain.com' with your ipaddress or domain name.

carbon.xml >>>
```
<HostName>domain.com</HostName>
<MgtHostName>domain.com</MgtHostName>
```

user-mgt.xml >>>
```
<Property name="defaultRealmName">localhost.com</Property>
```

# create keystores

Move to folder 'is/files/'
```
cd is/files
```

Run the following command and make sure to use;
first and last name? -> ipaddress or domain name
organizational unit -> Users
password -> wso2carbon
```
keytool -genkey -alias wso2carbon -keyalg RSA -keystore wso2carbon.jks -keysize 2048
```

follow the rest in order
```
keytool -export -alias wso2carbon -keystore wso2carbon.jks -file publickey.pem
keytool -import -alias wso2 -file publickey.pem -keystore client-truststore.jks -storepass wso2carbon
```


## How to use

```
# sh docker-up.sh
```
5 changes: 5 additions & 0 deletions is/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,16 @@ ARG WSO2_SERVER_VERSION=5.7.0
ARG WSO2_SERVER_PACK=${WSO2_SERVER}-${WSO2_SERVER_VERSION}
ARG WSO2_SERVER_HOME=${USER_HOME}/${WSO2_SERVER_PACK}
ARG WSO2_SERVER_CONF=${WSO2_SERVER_HOME}/repository/conf
ARG WSO2_SERVER_SECURITY=${WSO2_SERVER_HOME}/repository/resources/security


#set JVM memory heap to 2GB for production. Default is to 1GB.
COPY --chown=wso2carbon:wso2 ./files/wso2server.sh ${WSO2_SERVER_HOME}/bin

# update keystores
COPY --chown=wso2carbon:wso2 ./files/wso2carbon.jks ${WSO2_SERVER_SECURITY}/
COPY --chown=wso2carbon:wso2 ./files/client-truststore.jks ${WSO2_SERVER_SECURITY}/

# conecting external ldap
COPY --chown=wso2carbon:wso2 ./config/carbon.xml ${WSO2_SERVER_CONF}/
COPY --chown=wso2carbon:wso2 ./config/tenant-mgt.xml ${WSO2_SERVER_CONF}/
Expand Down

0 comments on commit 00e2bad

Please sign in to comment.