For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
class ClassTypeImpl implements reflect.ClassType {kind='class'} | |
class InterfaceTypeImpl implements reflect.InterfaceType {kind='interface'} | |
let node_modules = { | |
typescript : { | |
lib : { | |
lib.core.d : { | |
PropertyDescriptor : new InterfaceTypeImpl(), | |
PropertyDescriptorMap : new InterfaceTypeImpl(), | |
Object : new InterfaceTypeImpl(), | |
ObjectConstructor : new InterfaceTypeImpl(), |
/* | |
Specify the following options for the linker: | |
-Wl,--enable-stdcall-fixup | |
*/ | |
#include "ws2tcpip.h" | |
char * | |
gai_strerrorA( | |
_In_ int ecode) |
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
This guide shows how to set up a bidirectional client/server authentication for plain TLS sockets.
Newer versions of openssl are stricter about certificate purposes. Use extensions accordingly.
Generate a Certificate Authority:
private SubscribableChannel createInputChannel(String inputChannelName) { | |
PublishSubscribeChannel channel = new PublishSubscribeChannel(); | |
channel.setBeanName(inputChannelName); | |
channel.setBeanFactory(applicationContext); | |
//channel.setApplySequence(true); | |
((ConfigurableApplicationContext)applicationContext).getBeanFactory().registerSingleton(inputChannelName, channel); | |
return channel; | |
} |
These scripts let you run Redis in cluster mode (only for testing/dev purpose), without using the redis-trib script (written in Ruby! who wants it!?). The create-cluster
has been modified to assign cluster slots after creation.
var server = 'localhost:8081'; | |
var client = new NexusClient(server); | |
client.login('user', 'password') | |
.then(() => client.deleteArtifacts('maven-releases', 'it.pcan.test', '0.10.0').then(response => console.log(response.body))) | |
.then(() => client.deleteArtifacts('maven-releases', 'it.pcan.test', '0.10.1').then(response => console.log(response.body))) | |
.then(() => client.deleteArtifacts('maven-releases', 'it.pcan.test', '0.10.2').then(response => console.log(response.body))); |
// The contents of this file are subject to the Mozilla Public License | |
// Version 1.1 (the "License"); you may not use this file except in | |
// compliance with the License. You may obtain a copy of the License at | |
// http://www.mozilla.org/MPL/ | |
// | |
// Software distributed under the License is distributed on an "AS IS" | |
// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the | |
// License for the specific language governing rights and limitations | |
// under the License. | |
// |
/* | |
* **** CREDITS TO: https://github.com/olivergierke/spring-examples ***** | |
* | |
* Copyright 2015 the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |