Skip to content
Snippets Groups Projects
Commit f1542e4f authored by Zdravko Iliev's avatar Zdravko Iliev
Browse files

more logs

parent 4cd3745f
No related branches found
No related tags found
1 merge request!83Exchange 2016 support
......@@ -380,6 +380,7 @@ function createCertificate(certData, issuerData = null) {
//region Store new key in an interim variables
sequence = sequence.then(
keyPair => {
console.log('generation key',keyPair);
publicKey = keyPair.publicKey;
privateKey = keyPair.privateKey;
},
......@@ -743,6 +744,7 @@ function createCertificate(certData, issuerData = null) {
issuerData.privateKey :
privateKey;
console.log({issuerData});
console.log({signerKey});
console.log({certData});
console.log({defaultAlgorithms});
......@@ -761,6 +763,7 @@ function createCertificate(certData, issuerData = null) {
//region Encode and store certificate
sequence = sequence.then(
() => {
console.log('signing',certificate);
certificateBuffer = certificate.toSchema(true).toBER(false);
},
error => Promise.reject(`Error during signing: ${error}`)
......@@ -774,6 +777,7 @@ function createCertificate(certData, issuerData = null) {
//region Store exported public key on Web page
sequence = sequence.then(
result => {
console.log('here');
publicKeyBuffer = result;
},
error => Promise.reject(`Error during exporting of public key: ${error}`)
......
......@@ -7,6 +7,7 @@ module.exports = {
"viamapi-client": ["core-js/fn/promise", "./src/viamapi-client.js"],
"viamapi-iframe": [
"babel-polyfill",
'asmcrypto.js',
"webcrypto-liner",
"./src/iframe/viamapi-iframe.js"
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment