A single line of random knowledge or wisdom that's neither particularly random nor wise.
Awk match($0, /Certificate\[(\d+)\]/, arr) - arr[1] is the match.