In order to embed a course with the iframe embed, the course must be Public. Courses set to Private will not embed properly.
From the "sharing" section of your course management page, copy the embed code and paste it where needed.
You may also access this feature from inside your course. Select "Settings" and then copy the iframe code from the left sidebar.