If the house has been mortgaged by a bank loan, you need to apply to the loan bank for the house ownership certificate (that is, the big red book). Generally speaking, the bank will give you the real estate license after you pay off the loan.
If you need to apply for the house ownership certificate in advance, you can apply to the bank, but you need to bear certain fees and handling fees.