0

I am trying to use certutil with its basic syntax to encode a string that shows me more than what i need. The output of the following

command:

certutil -encode pass.txt

output:

-----BEGIN CERTIFICATE-----
Z29sZGVuZ2F0ZTEyMw==
-----END CERTIFICATE-----

Please tell me how to use certutil command to get rid off these lines

-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----

OS: Windows 7

Peter Duniho
  • 68,759
  • 7
  • 102
  • 136
Shoki
  • 21
  • 12

1 Answers1

0

certutil -encode pass.txt | grep -v CERTIFICATE will work

edit:

grep -v removes lines that matches the regex provided, so this will remove any line containing the phrase "CERTIFICATE"

Pownyan
  • 475
  • 1
  • 6
  • 23