Re: [AngularJS] Re: How to extract public key from X509 certificate in javascript or angular 2

2018-04-08 Thread pratik pandey
Also Sander,

Can you tell me the steps to include things the way you are saying.
or share some sample.

On Mon, Apr 9, 2018 at 10:32 AM, pratik pandey <pratikk2...@gmail.com>
wrote:

> Hi Sander,
>
> What i have done is NPM i PKIJS.
> After which i got this in my package.json-lock
>
> "pkijs": {
> "version": "2.1.36",
> "resolved": "https://registry.npmjs.org/pkijs/-/pkijs-2.1.36.tgz;,
> "integrity": "sha512-AlFMOtvh00xK3+iXxz3zRiHeGoStj58OQlV9gKrnqjvf
> G1mEzyxddRAwQNtvn2enSrtFrgP4IpIgDaUwE/aDLQ==",
> "requires": {
> "asn1js": "2.0.19",
> "pvutils": "1.0.12"
> }
> },
>
> After this i used this to import in my ts file
> import Certificate from "pkijs";
>
> but when i call   Certificate. something
> its shows undefined function.
>
>
>
> Pplease Help If possible.
>
> On Sun, Apr 8, 2018 at 7:04 AM, Sander Elias <sanderel...@gmail.com>
> wrote:
>
>> Hi Pratik,
>>
>> Probably you used NPM to get it. As far as i know, there is no correct
>> working @types fie for the thing. Enable Aloowjs is your tsconfig, and
>> import it something like this:
>> import * as PKI from "pkijs"
>>
>> I don't have time now to build a sample.
>>
>> Regards
>> Sander
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Angular and AngularJS discussion" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to angular+unsubscr...@googlegroups.com.
>> To post to this group, send email to angular@googlegroups.com.
>> Visit this group at https://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


Re: [AngularJS] Re: How to extract public key from X509 certificate in javascript or angular 2

2018-04-08 Thread pratik pandey
Hi Sander,

What i have done is NPM i PKIJS.
After which i got this in my package.json-lock

"pkijs": {
"version": "2.1.36",
"resolved": "https://registry.npmjs.org/pkijs/-/pkijs-2.1.36.tgz;,
"integrity":
"sha512-AlFMOtvh00xK3+iXxz3zRiHeGoStj58OQlV9gKrnqjvfG1mEzyxddRAwQNtvn2enSrtFrgP4IpIgDaUwE/aDLQ=="
,
"requires": {
"asn1js": "2.0.19",
"pvutils": "1.0.12"
}
},

After this i used this to import in my ts file
import Certificate from "pkijs";

but when i call   Certificate. something
its shows undefined function.



Pplease Help If possible.

On Sun, Apr 8, 2018 at 7:04 AM, Sander Elias  wrote:

> Hi Pratik,
>
> Probably you used NPM to get it. As far as i know, there is no correct
> working @types fie for the thing. Enable Aloowjs is your tsconfig, and
> import it something like this:
> import * as PKI from "pkijs"
>
> I don't have time now to build a sample.
>
> Regards
> Sander
>
> --
> You received this message because you are subscribed to the Google Groups
> "Angular and AngularJS discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to angular+unsubscr...@googlegroups.com.
> To post to this group, send email to angular@googlegroups.com.
> Visit this group at https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


Re: [AngularJS] Re: How to extract public key from X509 certificate in javascript or angular 2

2018-04-07 Thread pratik pandey
Tried this also bt didn't worked
..it's saying that it's not a function or undefined


On Sat 7 Apr, 2018, 12:27 PM Sander Elias,  wrote:

> Hi Pratik,
>
> Have a look at PKIjs 
>
> Regards
> Sander
>
> --
> You received this message because you are subscribed to the Google Groups
> "Angular and AngularJS discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to angular+unsubscr...@googlegroups.com.
> To post to this group, send email to angular@googlegroups.com.
> Visit this group at https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] How to extract public key from X509 certificate in javascript or angular 2

2018-04-06 Thread pratik pandey
-BEGIN 
CERTIFICATE-\r\nMIIFkTCCBHmgAwIBAgIEAOATLTANBgkqhkiG9w0BAQsFADCBkDELMAkGA1UEBhMC\r\nSU4xKjAoBgNVBAoTIWVNdWRocmEgQ29uc3VtZXIgU2VydmljZXMgTGltaXRlZDEd\r\nMBsGA1UECxMUQ2VydGlmeWluZyBBdXRob3JpdHkxNjA0BgNVBAMTLWUtTXVkaHJh\r\nIFN1YiBDQSBmb3IgQ2xhc3MgMyBPcmdhbmlzYXRpb24gMjAxNDAeFw0xNzEwMzEx\r\nMzQwNTNaFw0yMDEwMzAxMzQwNTNaMIG+MQswCQYDVQQGEwJJTjEOMAwGA1UEChMF\r\nVUlEQUkxGjAYBgNVBAsTEVRlY2hub2xvZ3kgQ2VudHJlMQ8wDQYDVQQREwY1NjAw\r\nOTIxEjAQBgNVBAgTCUthcm5hdGFrYTFJMEcGA1UEBRNAODdiNzU2ZjQ5ZWZlY2Jh\r\nMTczNzllOTY5N2JhMmNmMzFkYTdlOGY4NGE2ZThmNGRhOGQwNWIxODNmYjVkMWFk\r\nOTETMBEGA1UEAxMKQW51cCBLdW1hcjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC\r\nAQoCggEBAOlums2zjLx4cBx7MJGSN2hunAo3wuRu9Tk5bSkstTmIo4/Som8st2H5\r\nZy9YBpWNuqkT29LCqtzvJKu1WLClnRyrIWuEVxCerdJCb9+PXjjZwdUIIrGMyo0r\r\nUzysN62ybPhYeC1Ab+eQge9JEmQsdrJJ9Mya3A/9/FdVPRG3pI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5MrCZtiKS84tpXHHHL/Cjd0y3UO+35VvxFOZ50BQr\r\ni4XEIDYQd0liyHwTWkv7CoxTYHO9DPPttd1s9nsY1mHSGGWLWUoy3v1yc4iFaw28\r\nGXUxpP5A9BfwWFbeqaHx8Tcn0x8YB1r/dAQlE0G/VTsEiugxig==\r\n-END
 
CERTIFICATE-




how to extract public key from above certificate in angular 2 or javascript

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.