Questions tagged [openssl-net]
15 questions
3
votes
0 answers
openssl-net C# simple example
I have a C# project and I need to implement a Datagram TLS over UDP for security purposes.
I have researched a lot of libraries and have found this wrapper implementation of OpenSSL library for C# (ManagedOpenSSL) and here is the code…

user12790119
- 31
- 1
2
votes
1 answer
Rename output dll & lib file in openssl 3.0
We are upgrading from openssl 1.0.2 to openssl 3.0.
Earlier we were able to rename the output dll by editing lib name in following files.
util\mkdef.pl
util\pl\VC-32.pl (pl folder does not exists in openssl 3.0, i guess it is changed to…

Priyanka Chauhan
- 41
- 2
2
votes
1 answer
ManagedOpenSsl in .net core throws "System.BadImageFormatException:"
I have been facing multiple challenges with getting the ManagedOpenSsl to work with .Net Core. I downloaded ManagedOpenSsl.NetCore from nuget package.
My End Goal is to create a .pfx file from certificate PEM and private key. In the below code,…

Siva Shan
- 21
- 3
1
vote
0 answers
OPENSSL Error: The input data looks too long to be a hash
I am trying to generate and verify the signature with a private key. Its a very straight forward process. However, I am facing this issue.
clear
Echo "Generate EC KeyPair from OpenSSL command line"
Echo "1. Create the EC key:"
openssl ecparam…

sayantan sen
- 11
- 2
1
vote
0 answers
How to compile with C# Wrapper of OpenSSL 3.0
We are upgrading from openssl 1.0.2 to 3.0.1. With openssl 1.0.2, we were using this wrapper - https://github.com/openssl-net/openssl-net/blob/master/ManagedOpenSsl/Core/Native.cs
Any idea from where to get the latest C# wrapper for openssl…

Priyanka Chauhan
- 41
- 2
1
vote
1 answer
Make C# application trust SSL certificate
I'm trying to do a HTTPS get request via the HttpClient class. However there are exceptions thrown when trying to do the request as the provided certificate isn't trusted.
I have access to the private SSL key and the question is how do I install…

Jonathan Hellqvist
- 95
- 2
- 9
1
vote
1 answer
OpenSSL - Working in local system but not in other LAN systems [Intranet]
I am using OpenSSL to create SSL certificates to make my web application runnable with https to overcome issues to access microphone in chrome as it stopped allowing access now days without https.
We only need to make it runnable in our Intranet,…

Abhishek Parmar
- 23
- 1
- 6
1
vote
1 answer
OpenSSL Nuget package not installing in VS 2015
I am trying to install the OpenSSL Nuget package in VS 2015.
I get the error:
Attempting to gather dependencies information for package 'openssl.1.0.2.1' with respect to project 'BLL', targeting '.NETFramework,Version=v4.5'
Package 'openssl' is…

Dave
- 329
- 2
- 6
- 17
1
vote
2 answers
Convert .der to .pem using OpenSSL-Net
I have a .der certificate that is binary encoded which needs to be converted to a .pem file programatically in .net
This line gives the correct output using OpenSSL on OSX:
openssl x509 -inform der -in cert.crt -out cert.pem
But we need to do the…

Marcus
- 675
- 2
- 8
- 24
1
vote
0 answers
How to fix error generated from RSA_public_decrypt function
I have developed in C under Linux that send a random number to remote pc, then the remote pc read the number and encrypt it with openssl private key (with C# windows application), after that it send, the c program try to decrypt it with its openssl…

developer
- 4,744
- 7
- 40
- 55
0
votes
0 answers
OpenSSL 3.0 missing structures definition
While migrating from OpenSSL 1.0.2 to 3.0 code compilation is failing reason being most of the structures are not defined in latest header file.
specifies undefined struct/union 'x509_st'
specifies undefined struct/union 'X509_crl_st'
specifies…

Priyanka Chauhan
- 41
- 2
0
votes
1 answer
Generate the private and public keys using the Diffie-Hellman parameters (‘p’ and ‘g’). The result is ‘Pub_key’and ‘Priv_key’ (1024-bit/128 bytes)
I have a documentation where I need to create two key pairs PUBLIC and PRIVATE using diffie-hellman parameters 'p' and 'g'. my issue how should pass the parameter 'p'?

Dilrukshan Figurado
- 13
- 3
0
votes
0 answers
Read private key file (.pkcs8) with OpenSSL.NET
I am using the OpenSSL .NET project (https://github.com/openssl-net/openssl-net).
In C++ code, I have read the private key from a .pkcs8 file (30 82 02 4b 02 01 20 30 81 ...) to a EVP_PKEY struct like this:
FILE* pFile = NULL;
pFile =…

tzippy
- 6,458
- 30
- 82
- 151
0
votes
0 answers
OpenSSL.NET decrypting with GOST using c#
I have an encrypted base64 file "PersonalCodes.txt" and a private key to it "private.key". The key is in .pem (---begin private key -- etc.) and is encrypted with -gost89.
I need to use an OpenSSL.NET for this (apparently…

Eve
- 101
- 2
- 13
0
votes
1 answer
Convert different certificate revocation list formats in .net
I need to convert a bunch of certificate revocation list in .crl extension,they are in DER format (Binary), and I need to convert them into PEM format (Base64 string representation of the binary content of each .crl file).
As per instructions in…

Harvey Lin
- 724
- 11
- 25