Advertisement
Guest User

fuckvucem

a guest
Jul 27th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.96 KB | None | 0 0
  1. <?php
  2.   print "TESTING VENTANILLA:".PHP_EOL;
  3.  
  4.   $opts = array(
  5.     'ssl' => array('verify_peer'=>false)
  6.   );
  7.  
  8.   $context = stream_context_create($opts);
  9.  
  10. //  if (fopen("https://www.ventanillaunica.gob.mx","r",false)) { print "Ventanilla SSL Test OK\n\n"; }
  11.   if (fopen("https://www.ventanillaunica.gob.mx/ventanilla/RecibirCoveService","r",false, $context)) { print "RecibirCoveService SSL Test OK\n"; }
  12. //  if (fopen("https://www.ventanillaunica.gob.mx/ventanilla/DigitalizarDocumentoService","r",false)) { print "DigitalizarDocumentoService SSL Test OK\n"; }
  13.  
  14.   print "TESTING OTHER SITES:".PHP_EOL;
  15.   if (fopen("https://www.google.com","r")) { print "www.google.com SSL Test OK\n"; }
  16.   if (fopen("https://www.ssllabs.com","r")) { print "www.ssllabs.com SSL Test OK\n"; }
  17.   if (fopen("https://sadta.aaamerica.com.mx","r")) { print "sadta.aaamerica.com.mx SSL Test OK\n"; }
  18.  
  19. // # openssl s_client -CApath /etc/ssl/certs -connect www.ventanillaunica.gob.mx:443
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement