Skip to content

Instantly share code, notes, and snippets.

@PaulNichols
Created August 26, 2019 01:44
Show Gist options
  • Save PaulNichols/a25a0d94fde21e467e58aba232b109ee to your computer and use it in GitHub Desktop.
Save PaulNichols/a25a0d94fde21e467e58aba232b109ee to your computer and use it in GitHub Desktop.
public cerrificate file to b64 encoded
void Main()
{
Byte[] bytes = File.ReadAllBytes(@"C:\temp\usc.cer");
String file = Convert.ToBase64String(bytes);
File.WriteAllText(@"C:\temp\usc.cer.b64", file);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment