For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
#!/bin/bash | |
export PW=`pwgen -Bs 10 1` | |
echo "$PW" > password | |
# Create a self signed certificate & private key to create a root certificate authority. | |
keytool -genkeypair -v \ | |
-alias clientCA \ | |
-keystore client.jks \ |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
private static final MappingDiscoverer DISCOVERER = new AnnotationMappingDiscoverer(RequestMapping.class); | |
public static URI linkTo(Object invocationValue) { | |
LastInvocationAware invocations = (LastInvocationAware) invocationValue; | |
DummyInvocationUtils.MethodInvocation invocation = invocations.getLastInvocation(); | |
String mapping = DISCOVERER.getMapping(invocation.getTargetType(), invocation.getMethod()); | |
return new UriTemplate(mapping).expand(invocation.getArguments()); | |
} |
Lift on Monday, Wednesday, Friday
Climb on Tuesdays/Thursdays and Saturdays