Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Bloco de código
languagecpp
themeEclipse
titleExemplo 1
linenumberstrue
collapsefalse
user function getCert()
  #include "TOTVS.ch"
//+----------------------------------------------------------------------------+
//|Exemplifica o uso da função PFX2PEM                                         |
//+----------------------------------------------------------------------------+
User Function Exemplo()
	Local cPFX := "\certs\tests.pfx"
  	Local cCert := "\certs\cert.pem"
	Local cPass := "123"
	Local cError := ""
  	Local lRet
  	lRet := PFX2PEM( cPFX, cCert, @cError, "123"cPass )
	if  If( lRet == .F. )
    		conout( "Error: " + cError )
  Else
    	else
		cContent := MemoRead( cCert )
    		varinfo( "Cert", cContent )
  Endif
return	endif
Return 0

Abrangência

Protheus 12, TOTVS Application Server 19.3.1.9