This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #generate private key | |
| openssl genrsa -out private-key.pem 4096 | |
| #generate signing request | |
| openssl req -new -key private-key.pem -out certificate-signing-request.pem | |
| #self sign the request (or send off the Verisign etc etc) | |
| openssl x509 -req -in certificate-signing-request.pem -signkey private-key.pem -out certificate.pem | |
| #extract public key out of the certificate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var net = require('net') | |
| , encryption = require('./../encryption') | |
| , ursa = require('ursa') | |
| , exec = require('child_process').exec | |
| , fs = require('fs') | |
| , sh = require('execSync') | |
| var stdin = process.openStdin() | |
| var username, password, connection, privateKey, publicKey, otherPublicKey = false, userNames = [], certificate = false, myId, isNew = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>Hello, World!</title> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js" ></script> | |
| </head> | |
OlderNewer