'Short summary of the key pairs configured'

def key_summary(self, inst):

    public_key = inst.get_setting('SP_PUBLIC_CERT')
    private_key = inst.get_setting('SP_PRIVATE_KEY')
    if ((not public_key) or (not private_key)):
        return u'<em>Key    pair    incomplete/missing</em>'
    (pub1, pub2) = (public_key[0:10], public_key[(-10):])
    (priv1, priv2) = (private_key[0:10], private_key[(-10):])
    return u'Public:    {}\u2026{}<br>Private:    {}\u2026{}'.format(pub1, pub2, priv1, priv2)
