EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How to Limit string of X509 sign

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#37046
Posted: 06/21/2016 13:56:31
by Alfonso Madariaga V. (Standard support level)
Joined: 07/28/2015
Posts: 6

Hi,
I have a signed xml file but I need to limit the length of:
Signature Value
Modulus
X509Certificate

to a maximum of 76 characters.
Example :
Code
<SignatureValue>chS5RHvCpZhQdStwxyZ3H1VbFeHr....VJ6XBcVLabwxZEjOH+gtRCA==</SignatureValue>
<Modulus>v16Cp6RB2MJUoquFTNn25mWPq.....qMDEHDpn3Yyxizgw==</Modulus>
<X509Certificate>MIIEPDCCAySgAwIBA....JM/H1BUIorZkF3o5cE=</X509Certificate>


To

Code
<SignatureValue>chS5RHvCpZhQdStwxyZh5Vw/Bw3H1VbFeHr1WksJIb7xZV4dA+fJP9/ofz2Y
wuj0FwdN8xmpqPGGZpsHygTl4CaHTHGI+92AhKi5NPxkfXwXnMsazqD51ZKrp6Ic1OXlX1c
umpO...WWDi
vc3b...Q7vX
815x3JHcDkdtO26/B6FXP9Z2rBoRX92bFnenw1xw+tJr7NVJ6XBcVLabwxZEjOH+gtRCA==
</SignatureValue>

<X509Certificate>MIIEPDCCAySgAwIBAgIEYA3A3jANBgkqhkiG9w0BAQUFADCBgzEoMCYGA1
UEAx...gNVB
AcTB...Dmlu
.
.
.
j6tK...Z6Xb
Wiq6...iLXv
rD9g4LKjk8DHhB/cRGs76OJM/H1BUIorZkF3o5cE=</X509Certificate>


Greetings and thanks for your help.
#37047
Posted: 06/21/2016 14:03:32
by Dmytro Bogatskyy (EldoS Corp.)

Thank you for contacting us,

I’ve noticed there is no Support Access Ticket linked to your user account on EldoS site. Technical Support is provided to customers with the linked Support Access Ticket. You will find your Support Access Ticket together with all the details about how to use it in the registration e-mail that we’ve sent to you upon the purchase.

If you are evaluating the product and don't have a license yet, please let us know and then you can have support according to Basic support level. Basic support level includes answering basic technical questions that appear during product evaluation period. We also offer Premium support for a purchase from https://www.eldos.com/support/calc.php . You can use Premium Support to get higher level of assistance during your evaluation of our products.

Quote
I have a signed xml file but I need to limit the length of:
...
to a maximum of 76 characters.

You can do this by implementing TElXMLSigner.OnFormatElement and OnFormatText event handlers. Please check their implementation in XMLBlackbox\Signer and AdvancedSigner samples.
#37048
Posted: 06/21/2016 14:14:50
by Alfonso Madariaga V. (Standard support level)
Joined: 07/28/2015
Posts: 6

Any example of how to limit the length of the characters and make mention of these fields.

regards
#37049
Posted: 06/21/2016 15:33:58
by Eugene Mayevski (EldoS Corp.)

There are no specific samples available, yet as Dmytro has written, there are samples of using that events in the Signer and AdvancedSigner samples., which you will find on your disk in SecureBlackbox\Samples\language\XMLBlackbox directory.


Sincerely yours
Eugene Mayevski
#37059
Posted: 06/22/2016 13:32:32
by Alfonso Madariaga V. (Standard support level)
Joined: 07/28/2015
Posts: 6

Ok. as I can access the signature string of <X509Certificate> ?
#37069
Posted: 06/22/2016 17:16:50
by Dmytro Bogatskyy (EldoS Corp.)

Hi,

Quote

Ok. as I can access the signature string of <X509Certificate> ?

Could you please be more specific about what operation you want to do. Do you want to read X.509 certificate or do you want to reformat/modify the value, or something else?
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.

Reply

Statistics

Topic viewed 851 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!