If you do it, the purpose of rel="canonical"
is somewhat defeated, as the page now has two names (one for http:
, one for https:
). There's nothing prohibiting it, but it's probably not a good idea.
Pick one or the other and make that the canonical URL.