Paste of one-line PEM ( as recorded in log files)
Brought to you by:
chris2511
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