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 
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 
> 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 Sander Elias
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.


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] Re: How to extract public key from X509 certificate in javascript or angular 2

2018-04-07 Thread Sander Elias
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.