how to implement a method to extract all certificates from p7b string using swift?

Actually, I am getting a p7b String from my CA server. The String also does not have any beginning or ending line like -----BEGIN PKCS----- and -----END PKCS-----. But it is a valid p7b as it is working on windows OS. Now, I want to parse all certificates from p7b as it posesses certificate keychain and distinguish my certificate string. I tried to use CryptoSwift or ASNDecoder1 framework but failed to parse any certificate. How can i parse all the certificates? If any library is available, it's ok. Otherwise, can you please mention the steps to do so?

how to implement a method to extract all certificates from p7b string using swift?
 
 
Q