Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How to get Public Key hash

Avatar

Level 1

Hi everyone!

I'm newbie in LC and ask you for help.

I have a form with some fields (info about digital certificate) which are fills in automatically on postSign event.

I can get IssuedTo, IssuedBy, KeyHolderName, ValidFrom(To) info but I can't get PublicKey.

I used this script:

var signatureOne = event.target.getField('topmostSubform[0].Page1[0].SignatureField1[0]');

var signatureInformation = signatureOne.signatureInfo();

var signatureCertificate = signatureInformation.certificates[0];

  

IssuedTo.rawValue = String(signatureCertificate.subjectCN);

IssuedBy.rawValue = signatureCertificate.issuerDN.o;

KeyHolder.rawValue = String(signatureCertificate.subjectDN.sn +' '+signatureCertificate.subjectDN.givenName);

ValidFrom.rawValue = String(signatureCertificate.validityStart);

ValidTo.rawValue = String(signatureCertificate.validityEnd);

 

PublicKey.rawValue=    - and here the problem begins.

Any help/ideas how to get Public Key will be very-very appreciated.

Alex.

0 Replies