This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Downloads the public certificate of the certificate authority | |
echo quit | openssl s_client -showcerts -servername example.com -connect example.com:443 2> /dev/null | awk '/BEGIN/,/END/{ if(/BEGIN/){c=""};c=c $0 "\n"}END{print c}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Reflection; | |
namespace MyProject.Unit.Tests.Extensions | |
{ | |
public static class ObjectExtensions | |
{ | |
/// <summary> | |
/// Invokes a private/public method on an object. Useful for unit testing. | |
/// </summary> |