Skip to content

Commit

Permalink
WIP for large refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Mar 21, 2017
1 parent d22c419 commit 36df2ee
Show file tree
Hide file tree
Showing 166 changed files with 2,339 additions and 8,749 deletions.
3 changes: 1 addition & 2 deletions NOTICE.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ redistribution or general licensing terms than those stated in the Apache
License. Users and redistributors are hereby requested to verify these
conditions and agree upon them.

This project is based on spring saml recipe from Jim Cox. You can find his
excellent project here: http://sourceforge.net/projects/spring-saml/
This project is based on spring saml.
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,49 @@ Changing port numbers
Both the SP and IDP can be made to bind to a different tcp/ip port:
`mvn jetty:run -DhttpPort=8082 -DhttpsPort=8444`

## [Private signing key and public certificate](#signing-keys)

The SAML Spring Security library needs a private DSA key / public certificate pair for the IdP / SP which can be re-generated
if you want to use new key pairs.

```bash
openssl req -subj '/O=Organization, CN=Mujina/' -newkey rsa:2048 -new -x509 -days 3652 -nodes -out mujina.crt -keyout mujina.pem
```

The Java KeyStore expects a pkcs8 DER format for RSA private keys so we have to re-format that key:

```bash
openssl pkcs8 -nocrypt -in mujina.pem -topk8 -out mujina.der
```

Remove the whitespace, heading and footer from the mujina.crt and mujina.der:

```bash
cat mujina.der |head -n -1 |tail -n +2 | tr -d '\n'; echo
cat mujina.crt |head -n -1 |tail -n +2 | tr -d '\n'; echo
```

Above commands work on linux distributions. On mac you can issue the same command with `ghead` after you install `coreutils`:

```bash
brew install coreutils

cat mujina.der |ghead -n -1 |tail -n +2 | tr -d '\n'; echo
cat mujina.crt |ghead -n -1 |tail -n +2 | tr -d '\n'; echo
```

Add the mujina key pair to the application.yml file:

```yml
idp:
private_key: ${output from cleaning the der file}
certificate: ${output from cleaning the crt file}

sp:
private_key: ${output from cleaning the der file}
certificate: ${output from cleaning the crt file}
```
Resetting the IDP
-----------------
Expand Down
29 changes: 0 additions & 29 deletions build.xml

This file was deleted.

116 changes: 0 additions & 116 deletions mujina-common/pom.xml

This file was deleted.

This file was deleted.

This file was deleted.

38 changes: 0 additions & 38 deletions mujina-common/src/main/java/nl/surfnet/mujina/model/Attribute.java

This file was deleted.

Loading

0 comments on commit 36df2ee

Please sign in to comment.