I came across an interesting case in The Casuist several years ago involving a secret ordination and consecration. The main point of the article was to show how careful Holy Mother Church protects the seal of confession, but it also indirectly points out how Holy Orders are still valid even though done in secret and without witnesses.