I need to sign XML-file with XADES BES algorithm.
In 1C dev guide I have found that I can use CryptoManger
| Quote |
|---|
| CryptoManager Main Syntax: New CryptoManager(<CryptoprotectionModuleName>, <CryproprotectionModulePath>, <CryptoprotectionModuleType>) Parameters: <CryptoprotectionModuleName> (required) Type: String. The name of the cryptoprotection module. Name is case insensitive. It is used on MS Windows. <CryproprotectionModulePath> (required) Type: String. Path to a library file, implementing the required set of functions. If multiple library files are specified, they should be colon (":") separated. The list of libraries can include files that do not exist. If a library file is not found, an error does not occur. It is used on Linux. <CryptoprotectionModuleType> (required) Type: Number. Defines type of cryptoprotection module. Description: If cryptoprotection module is not found, the exception is generated. |
I understand that I have to fill 2 of 3 parameters depending of the system I use.
Could you please provide some examples for Windows and for Linux how to create this object.
I have seen example, but it is for some Russian Crypto module which we do not use.
| Code |
|---|
CryptoManager = New CryptoManager("", "", 75); |
Could you please provide which strings should I use as a parameters to sign with RSA-SHA1 2048 bits and some examples as well
| Quote |
|---|
| CryptoManager SignAlgorithm Usage: Read and write. Description: Type: String. Contains the specified sign algorithm. |
Desktop version