Menu

#87 Paste of one-line PEM ( as recorded in log files)

open
nobody
Paste PEM (1)
5
2015-11-04
2015-11-04
No

When Pasting from clipboard, and the text is not formatted in correct length, import fails.
Thet certificate in the log file on Juniper SA is all in one line.

In notepad I can reformat the lines :
-----BEGIN CERTIFICATE----- then add CR
and break long lines
MIIFZjCCA06gAwIBAgIQEAAAAAAAxJ2Q3rzHFEdDoDANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJCRTETMBEGA1UEAxMKQ2l0aXplbiBDQTEPMA0GA1UEBRMGMjAxNTExMB4XDT...
into standard lengths
MIIFZjCCA06gAwIBAgIQEAAAAAAAxJ2Q3rzHFEdDoDANBgkqhkiG9w0BAQUFADAzMQswC
QYDVQQGEwJCRTETMBEGA1UEAxMKQ2l0aXplbiBDQTEPMA0GA1UEBRMGMjAxNTExMB4XDT

But this could be an easy job in the code ?

regards,
Luc Vandenbroucke
SCKCEN Belgium

Discussion


Log in to post a comment.