LastErrorText Exit Sub End If ' Get the private key in XML format: Dim pkeyXml As Stringĭim rsa As New ChilkatRsa ' Import the private key into the RSA component:ĭebug.Print rsa. LastErrorText Exit Sub End If Dim pkey As PrivateKeyĭebug.Print cert. LastMethodSuccess = 0) Thenĭebug.Print certStore. FindCertBySubject( "Chilkat Software, Inc.") LastErrorText Exit Sub End If Dim cert As ChilkatCert LoadPfxFile( "chilkat.pfx", "test")ĭebug.Print certStore. ' (a PFX file may contain more than one certificate.) Dim certStore As New ChilkatCertStore ' The 1st argument is the filename, the 2nd arg is the ' PFX file's password: Dim success As Long ' Create an instance of a certificate store object, load a PFX file, ' locate the certificate we need, and use it for signing. ' See Global Unlock Sample for sample code. ' This example requires the Chilkat API to have been previously unlocked. This example demonstrates using base64url encoding by setting the RSA object's EncodingMode property equal to "base64url". Character encodings supported by Chilkat are listed at Chilkat Character Encodings.) (Please note that a "binary encoding" is different than a "character encoding". The list of binary encodings supported by Chilkat are documented at Chilkat Binary Encodingsįor any supported encoding, such as base64, hex, url, quoted-printable, modbase64, base64url, etc., the encoding name may be used in any "EncodingMode" property or in any method argument that specifies a binary encoding. '–' is used instead of '+', and '_' is used instead of '/') and it omits the padding characters.Ĭhilkat adds support for "base64url" in version 9.5.0.56. Base64url encoding is identical to base64 encoding except it uses non-reserved URL characters (e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |