Herpes...while pregnant?

So today at my 34 week check I told my doctor I was having some pain and he checked and told me i was having a herpes outbreak..

Like what...

I don’t even know when I would have gotten that.. or where.. or how. I haven’t had sex in about 30 weeks. So it’s not like I’ve gotten it recently...

How do I tell my husband? Will baby be ok? My head is spinning. I know it’s common and more people have it then we know.. but it’s so embarrassing.