forked from root/acme.js
relocate packages for easier export
This commit is contained in:
parent
d17a373a89
commit
edc830696e
|
@ -10,8 +10,8 @@ var Enc = require('@root/encoding/base64');
|
||||||
var ACME = module.exports;
|
var ACME = module.exports;
|
||||||
//var Keypairs = exports.Keypairs || {};
|
//var Keypairs = exports.Keypairs || {};
|
||||||
//var CSR = exports.CSR;
|
//var CSR = exports.CSR;
|
||||||
var sha2 = require('./node/sha2.js');
|
var sha2 = require('./lib/node/sha2.js');
|
||||||
var http = require('./node/http.js');
|
var http = require('./lib/node/http.js');
|
||||||
|
|
||||||
ACME.formatPemChain = function formatPemChain(str) {
|
ACME.formatPemChain = function formatPemChain(str) {
|
||||||
return (
|
return (
|
|
@ -4,7 +4,7 @@
|
||||||
var Enc = require('@root/encoding');
|
var Enc = require('@root/encoding');
|
||||||
|
|
||||||
var EC = module.exports;
|
var EC = module.exports;
|
||||||
var native = require('./node/ecdsa.js');
|
var native = require('./lib/node/ecdsa.js');
|
||||||
|
|
||||||
// TODO SSH
|
// TODO SSH
|
||||||
var SSH;
|
var SSH;
|
||||||
|
@ -12,7 +12,7 @@ var SSH;
|
||||||
var x509 = require('./x509.js');
|
var x509 = require('./x509.js');
|
||||||
var PEM = require('./pem.js');
|
var PEM = require('./pem.js');
|
||||||
//var SSH = require('./ssh-keys.js');
|
//var SSH = require('./ssh-keys.js');
|
||||||
var sha2 = require('./node/sha2.js');
|
var sha2 = require('./lib/node/sha2.js');
|
||||||
|
|
||||||
// 1.2.840.10045.3.1.7
|
// 1.2.840.10045.3.1.7
|
||||||
// prime256v1 (ANSI X9.62 named elliptic curve)
|
// prime256v1 (ANSI X9.62 named elliptic curve)
|
|
@ -7,7 +7,7 @@ var Enc = require('@root/encoding/base64');
|
||||||
var Keypairs = module.exports;
|
var Keypairs = module.exports;
|
||||||
var Rasha = require('./rsa.js');
|
var Rasha = require('./rsa.js');
|
||||||
var Eckles = require('./ecdsa.js');
|
var Eckles = require('./ecdsa.js');
|
||||||
var native = require('./node/keypairs.js');
|
var native = require('./lib/node/keypairs.js');
|
||||||
|
|
||||||
Keypairs._stance =
|
Keypairs._stance =
|
||||||
"We take the stance that if you're knowledgeable enough to" +
|
"We take the stance that if you're knowledgeable enough to" +
|
|
@ -4,9 +4,9 @@ var native = module.exports;
|
||||||
|
|
||||||
// XXX provided by caller: export
|
// XXX provided by caller: export
|
||||||
var RSA = native;
|
var RSA = native;
|
||||||
var PEM = require('../pem.js');
|
var PEM = require('../../pem.js');
|
||||||
var x509 = require('../x509.js');
|
var x509 = require('../../x509.js');
|
||||||
var ASN1 = require('../asn1/parser.js');
|
var ASN1 = require('../../asn1/parser.js');
|
||||||
|
|
||||||
native.generate = function(opts) {
|
native.generate = function(opts) {
|
||||||
opts.kty = 'RSA';
|
opts.kty = 'RSA';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "acme",
|
"name": "@root/acme",
|
||||||
"version": "2.0.0-wip.0",
|
"version": "3.0.0-wip.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"version": "3.0.0-wip.0",
|
"version": "3.0.0-wip.0",
|
||||||
"description": "Free SSL certificates through Let's Encrypt, right in your browser",
|
"description": "Free SSL certificates through Let's Encrypt, right in your browser",
|
||||||
"homepage": "https://rootprojects.org/acme/",
|
"homepage": "https://rootprojects.org/acme/",
|
||||||
"main": "lib/acme.js",
|
"main": "acme.js",
|
||||||
"browser": {
|
"browser": {
|
||||||
"./lib/node/sha2.js": "./lib/browser/sha2.js",
|
"./lib/node/sha2.js": "./lib/browser/sha2.js",
|
||||||
"./lib/node/http.js": "./lib/browser/http.js",
|
"./lib/node/http.js": "./lib/browser/http.js",
|
||||||
|
@ -11,10 +11,8 @@
|
||||||
"./lib/node/rsa.js": "./lib/browser/rsa.js",
|
"./lib/node/rsa.js": "./lib/browser/rsa.js",
|
||||||
"./lib/node/keypairs.js": "./lib/browser/keypairs.js"
|
"./lib/node/keypairs.js": "./lib/browser/keypairs.js"
|
||||||
},
|
},
|
||||||
"directories": {
|
|
||||||
"lib": "lib"
|
|
||||||
},
|
|
||||||
"files": [
|
"files": [
|
||||||
|
"*.js",
|
||||||
"lib",
|
"lib",
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var RSA = module.exports;
|
var RSA = module.exports;
|
||||||
var native = require('./node/rsa.js');
|
var native = require('./lib/node/rsa.js');
|
||||||
var x509 = require('./x509.js');
|
var x509 = require('./x509.js');
|
||||||
var PEM = require('./pem.js');
|
var PEM = require('./pem.js');
|
||||||
//var SSH = require('./ssh-keys.js');
|
//var SSH = require('./ssh-keys.js');
|
||||||
var sha2 = require('./node/sha2.js');
|
var sha2 = require('./lib/node/sha2.js');
|
||||||
var Enc = require('@root/encoding/base64');
|
var Enc = require('@root/encoding/base64');
|
||||||
|
|
||||||
RSA._universal =
|
RSA._universal =
|
|
@ -3,8 +3,8 @@
|
||||||
require('dotenv').config();
|
require('dotenv').config();
|
||||||
|
|
||||||
var punycode = require('punycode');
|
var punycode = require('punycode');
|
||||||
var ACME = require('../');
|
var ACME = require('../acme.js');
|
||||||
var Keypairs = require('../lib/keypairs.js');
|
var Keypairs = require('../keypairs.js');
|
||||||
var acme = ACME.create({
|
var acme = ACME.create({
|
||||||
// debug: true
|
// debug: true
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue