lib/classes/Swift/Signers/SMimeSigner.php
public function setEncryptCertificate($recipientCerts, $cipher = null)
    {
        if (is_array($recipientCerts)) {
            $this->encryptCert = [];

            foreach ($recipientCerts as $cert) {
                $this->encryptCert[] = 'file://'.str_replace('\\', '/', realpath($cert));
            }
        } else {
            $this->encryptCert = 'file://'.str_replace('\\', '/', realpath($recipientCerts));
        }

        if (null !== $cipher) {
            $this->encryptCipher = $cipher;
        }

        return $this;
    }
public function setEncryptCertificate($recipientCerts, $cipher = null)
    {
        if (is_array($recipientCerts)) {
            $this->encryptCert = [];

            foreach ($recipientCerts as $cert) {
                $this->encryptCert[] = 'file://'.str_replace('\\', '/', realpath($cert));
            }
        } else {
            $this->encryptCert = 'file://'.str_replace('\\', '/', realpath($recipientCerts));
        }

        if (null !== $cipher) {
            $this->encryptCipher = $cipher;
        }

        return $this;
    }
public function setEncryptCertificate ( $ recipientCerts , $ cipher = null ) { if ( is_array ( $ recipientCerts ) ) { $ this -> encryptCert = [ ] ; foreach ( $ recipientCerts as $ cert ) { $ this -> encryptCert [ ] = 'file://' . str_replace ( '\\' , '/' , realpath ( $ cert ) ) ; } } else { $ this -> encryptCert = 'file://' . str_replace ( '\\' , '/' , realpath ( $ recipientCerts ) ) ; } if ( null !== $ cipher ) { $ this -> encryptCipher = $ cipher ; } return $ this ; }
Set the certificate location to use for encryption.

@see https://secure.php.net/manual/en/openssl.pkcs7.flags.php
@see https://secure.php.net/manual/en/openssl.ciphers.php

@param string|array $recipientCerts Either an single X.509 certificate, or an assoc array of X.509 certificates.
@param int          $cipher

@return $this
Set the certificate location to use for encryption .