Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
// convert to pem file | |
openssl x509 -in cert.der -inform der -outform pem -out cert.pem | |
openssl rsa -in cert.key -inform der -out certkey.pem -outform pem | |
//export to p12 format | |
openssl pkcs12 -export -in cert.pem -inkey certkey.pem -name alias -out cert.p12 | |
openssl pkcs12 -export -out certificate.p12 -inkey privateKey.key -in certificate.crt -certfile CACert.crt | |
//delete old alias | |
keytool -delete -alias alias -keystore keystore |
/** | |
* Copyright 2019 Google LLC. | |
* SPDX-License-Identifier: Apache-2.0 | |
*/ | |
function getEnvironment() { | |
var environment = { | |
spreadsheetID: "<REPLACE WITH YOUR SPREADSHEET ID>", | |
firebaseUrl: "<REPLACE WITH YOUR REALTIME DB URL>" | |
}; |
// 1. Javascripts | |
var iv = '00000000000000000000000000000000'; | |
var salt = '99990000000000000000000000000099'; | |
var AesUtil = function() { | |
this.keySize = 128 / 32; | |
this.iterationCount = 1000; | |
}; |