Projekt

Obecné

Profil

« Předchozí | Další » 

Revize bdf9a46c

Přidáno uživatelem Stanislav Král před asi 4 roky(ů)

Re #8472 - Renamed `make_csr` method to `create_csr`

Zobrazit rozdíly:

proj/services/cryptography.py
115 115

  
116 116
            return self._run_for_output(args, proc_input=bytes(key, encoding="utf-8")).decode()
117 117

  
118
    def make_csr(self, subject, subject_key, subject_key_pass=""):
118
    def create_csr(self, subject, subject_key, subject_key_pass=""):
119 119
        """
120
        Makes a CSR (Certificate Signing Request)
120
        Creates a CSR (Certificate Signing Request)
121 121

  
122 122
        :param subject: an instance of <Subject> representing the subject to be added to the CSR
123 123
        :param subject_key: the private key of the subject to be used to generate the CSR
......
188 188
        :param days: number of days for which the certificate will be valid
189 189
        :return: string containing the generated certificate in PEM format
190 190
        """
191
        csr = self.make_csr(subject, subject_key, subject_key_pass=subject_key_pass)
191
        csr = self.create_csr(subject, subject_key, subject_key_pass=subject_key_pass)
192 192
        return self.sign_csr(csr, issuer_pem, issuer_key, issuer_key_pass=issuer_key_pass, extensions=extensions,
193 193
                             days=days)
194 194

  

Také k dispozici: Unified diff