Updated all related logic of cert check and authorization on publish, and minor fix on provider

in 11 minutes and 3 seconds, using 0 compute credits, and was queued for 0 seconds