Dealing with .pfx certificate in Loadrunner - performance-testing

is there a way in loadrunner where we can use .pfx certificate? I know web_set_certificate_ex() only accepts .pem as a format. but what if the application server is not accepting .pem format and only .pfx format. is there any provision where in we can use .pfx?

See Virtual User Guide, Advanced topics, creating virtual users with visual studio.
Once you have access to a full development environment you can use even the client source, along with whatever certificate model you desire.

You may consider to convert between different formats via openssl tools. I found more details here.

Related

Encryption of CAB Files using Installshield

I was wondering if it is possible to prevent access to .cab files using InstallShield Software. Maybe there is any option in the software.. It should encrypt .cab file, maybe with a certificate file?
It's possible to encrypt using InstallShield but at the file level. This is applicable if you're using Installscript project. Refer this -
https://docs.revenera.com/installshield26helplib/helplibrary/FeatureSettings.htm
For the basic MSI project, you could sign the .cab file but I didn't find any option to encrypt here. You could probably use some external script to perform this job and can try to decrypt it using a custom action at the initial phase of installation.

Converting HTML to PDF with Windows Azure app services/Syncfusion

I'm trying to use Syncfusion to convert HTML to PDF on Windows Azure.
It is working fine on the development machine. However on Windows Azure it does not work with HTTPS protocol. It will only work with HTTP.
Syncfusion's troubleshooting website suggests the following solution:
Reason When OpenSSL package is not installed in the machine.
Solution For converting HTTPS sites, it requires OPENSSL libraries to be installed in the machine. The OPENSSL library can be installed by downloading its setup from the below link,
OpenSSL
Instead, the required assemblies can added in the Windows system folder (for 64 bit machine, it should be place in
$SystemDrive\Windows\SysWOW64 and for 32 bit machine, it should be place in
$SystemDrive\Windows\System32),
libeay32.dll
libssl32.dll
ssleay32.dll
https://help.syncfusion.com/file-formats/pdf/convert-html-to-pdf/webkit#troubleshooting
Is it possible to implement this with App Services? If so how would I go about it?
When converting HTTPS sites, blank paged PDF may occur due to missing of the OPENSSL assemblies in Azure website. To convert HTTPS sites, the converter requires OPENSSL assemblies. By default, some Azure websites do not have the OPENSSL assemblies. So, these assemblies should be added to the website explicitly. We could not place the assemblies in system drive on Azure App service environment. Refer below steps to place the OPENSSL assemblies in Azure for converting HTTPS sites to PDF.
Create a new folder in a project and copy the OPENSSL assemblies to
that folder.
libeay32.dll
libssl32.dll
ssleay32.dll
Include that folder in a project and set copy to the output
directory as “Copy always”.
Get the path of the OPENSSL assemblies folder in C# and set it to
the environment variable.
Refer below link for more information about adding OPENSSL assemblies in Azure.
KB: https://www.syncfusion.com/kb/8821/blank-pdf-is-generated-when-converting-https-sites-to-pdf-in-azure
Note: I work for Syncfusion.
Due to some limits about Azure Web App sandbox, I am sure you can not directly add these required assemblies in the Windows system folder.
Although I never used Syncfusion, per my experience, I think you can try to add these required dll libraries in the same folder of the Syncfusion's. Because the dll load path generally be the system foloder or the same path from caller.
Other doubts by me, Azure default supports SSL, I don't think you need to install OpenSSL manually. May you just need to change your code to use an exisiting SSL certificate to support HTTPs for Syncfusion, as the offical document Use an SSL certificate in your application code in Azure App Service said.
All above as reference only based on my thinking. Hope it helps.

Web based method to get public key from .pem file

I have created an EC2 instance and I now want to connect to it from a Chromebook. For the time being, I only have access to this Chromebook and I am after a way of generating my public key from the .pem file that Amazon issues.
I am familiar with how to do this via the Linux command line, but I need a web based solution for this.
You need an SSH client for Chrome, try this:
https://chrome.google.com/webstore/detail/secure-shell/pnhechapfaindjhompbnflcldabbghjo

How to convert Domino specific kyr file to pkcs12 on 64-bit windows

I need to get the private key out of my Domino kyr file, to import into another server. The key should be in the best case pkcs12 format. I am aware of the IKEYMAN tool by IBM. However, I cannot use that because I don't have access to a 32-bit windows XP. And unfortunately, only version 5 can understand the kyr format.
It is a very strange conundrum. I hope somebody can help me out.
Just download "kyrtool" from IBM and put it in the appropriate directory. This download contains versions for windows and linux.
Use the show keys command as described in this link to show the private key in Base64 Format. You can then simply convert it into anything you need with e.g. Openssl.

ilmerge with a PFX file

It would appear that VS2012 uses PFX files for signing instead of SNK files. I get the impression this is related to delayed signing; but I don't care.
When I build my application, I can use "sn -tp <my assembly>" and see it is signed.
When I ilmerge the debug folder and use the /keyfile directive (the way I was successfully doing with SNK files), the DLLs merge into one unsigned DLL.
I have read articles suggesting clever workarounds, such as extracting the public key from the original DLL and then using this in the /keyfile directive...which also failed to allow me to create a strongly signed DLL.
So, what do I need to do to get ilmerge to work with the PFX file so that my assembly will be strongly typed?
Thanks
I recently was attempting to do just the same thing (this time with VS 2015, but I am sure the results are the same).
PFX files are password-protected by default and ILMerge (at the time of this writing) does not appear to support them.
Manual Signing
The "clever workaround" as you describe it is presented here, and it appears to be the only way to accomplish this:
>sn -p some.pfx some.pub
>ilmerge /keyfile:some.pub /delaysign /out:merged\some.dll some.dll
>sn -R merged\some.dll some.pfx
Note that extracting the public key from the PFX file requires user input - allegedly it was previously possible to pipe in the password, but the current version of sn.exe does not permit console redirection.
Automated (CI Build System) Signing
In order to strong sign ILMerged assemblies in an automated way, it is necessary to install they key on the local build machine. This still requires user input in the form of password input, but only has to be done once per build machine.
As before, we need to extract the public key from the PFX file (this only has to be done once, and the PUB file can be saved alongside the PFX or even checked-in to source).
Here is the one-time setup code (both require password input):
>sn -p some.pfx some.pub
>sn -i some.pfx SomeContainerName
During the automated build, it is now possible to run:
>ilmerge /keyfile:some.pub /delaysign /out:merged\some.dll some.dll
>sn -Rc merged\some.dll SomeContainerName

Resources