Skip to content

Instantly share code, notes, and snippets.

@ivanchuryumov
ivanchuryumov / genclient
Created December 14, 2016 06:11 — forked from wsargent/genclient
Create a working(!) client certificate for use with nginx, using only keytool
#!/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 \
<?
function ParsePath($node)
{
if(is_string($node))
{
$action = 'default';
$node = str_replace('//', '%2F', $node); // спасибо апачу (при использовании %2F в урле выдает 404)
$t = explode('/', $node);
<!--
Source is here: https://gist.github.com/nclavaud/1386997
But I made some changes.
-->
<?php
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\FormFactory;
use Symfony\Component\Form\Extension\Core\CoreExtension;