def clean_public_key(self):
    key = self.cleaned_data['public_key']
    validate_rsa_key(key, is_secret=False)
    return key
def clean_public_key(self):
    key = self.cleaned_data['public_key']
    validate_rsa_key(key, is_secret=False)
    return key