GithubHelp home page GithubHelp logo

restletutil's Introduction

Restlet related utilities.


The following shell commands were used to make the localhost certificate and java keystore (*.jks) file: 

	export keystore=keystore.jks
	export storepass=<fake_password>    # substitute real password
	
	rm -f ${keystore}
	
	keytool -genkey -v -alias TMQA_localhost -dname "CN=localhost, OU=Radiation Oncology, O=University of Michigan, C=US" \
        -keypass ${storepass} -keystore ${keystore} -storepass ${storepass} -keyalg "RSA" -sigalg "SHA512withRSA" -keysize 2048 -validity 36500

	keytool -genkey -v -alias TMQA_irrer -dname "CN=141.214.125.68, OU=Radiation Oncology, O=University of Michigan, C=US" \
        -keypass ${storepass} -keystore ${keystore} -storepass ${storepass} -keyalg "RSA" -sigalg "SHA512withRSA" -keysize 2048 -validity 36500

	for certFile in rodicom11dev.txt rodicom11cet.txt rodicom11prod.txt; do
	    keytool -importcert -file ${certFile} -trustcacerts -noprompt -keystore ${keystore} -keypass ${storepass} -storepass ${storepass}
    done	
	
	keytool -list -keystore ${keystore} -storepass ${storepass}

The last command will print the certificate's fingerprint.  This can be verified by visiting the
web server (ie: https://rodicom11dev) and looking at the associated server certificate.  Some SHA1
fingerprints as of 10 Nov 2015:

	dev  : 3B:B6:4E:12:8D:81:D2:65:E5:89:C1:4B:E3:87:96:78:FC:4D:AC:69
	cet  : F3:8F:5A:96:98:55:58:B0:B7:2C:11:AA:60:AF:1D:8E:D5:88:AD:13
	prod : EA:24:6A:15:52:6A:B3:9A:A4:C1:4E:FD:FD:62:8E:8D:17:50:34:D5

restletutil's People

Contributors

irrer avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.