예제 #1
0
파일: key.py 프로젝트: sfluo/Mr.Bot
    def _save_pkcs1_pem(self):
        '''Saves a PKCS#1 PEM-encoded private key file.

        @return: contents of a PEM-encoded file that contains the private key.
        '''

        der = self._save_pkcs1_der()
        return pem.save_pem(der, b('RSA PRIVATE KEY'))
예제 #2
0
    def _save_pkcs1_pem(self):
        '''Saves a PKCS#1 PEM-encoded private key file.

        @return: contents of a PEM-encoded file that contains the private key.
        '''

        der = self._save_pkcs1_der()
        return pem.save_pem(der, b('RSA PRIVATE KEY'))
예제 #3
0
파일: key.py 프로젝트: sfluo/Mr.Bot
    def _save_pkcs1_pem(self):
        '''Saves a PKCS#1 PEM-encoded public key file.

        @return: contents of a PEM-encoded file that contains the public key.
        '''

        der = self._save_pkcs1_der()
        return pem.save_pem(der, 'RSA PUBLIC KEY')
예제 #4
0
    def _save_pkcs1_pem(self):
        '''Saves a PKCS#1 PEM-encoded public key file.

        @return: contents of a PEM-encoded file that contains the public key.
        '''

        der = self._save_pkcs1_der()
        return pem.save_pem(der, 'RSA PUBLIC KEY')