def export_jwks(self, private=False, issuer=""):
        """
        Produces a dictionary that later can be easily mapped into a 
        JSON string representing a JWKS.
        
        :param private: Whether it should be the private keys or the public
        :param issuer: The entity ID.
        :return: A dictionary with one key: 'keys'
        """
        keys = []
        for kb in self.issuer_keys[issuer]:
            keys.extend([k.serialize(private) for k in kb.keys() if
                         k.inactive_since == 0])
        return {"keys": keys}
Produces a dictionary that later can be easily mapped into a 
        JSON string representing a JWKS.
        
        :param private: Whether it should be the private keys or the public
        :param issuer: The entity ID.
        :return: A dictionary with one key: 'keys'