Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logge korrekt status etter sertifikatvalidering #102

Open
kennethmyhra opened this issue May 13, 2020 · 0 comments
Open

Logge korrekt status etter sertifikatvalidering #102

kennethmyhra opened this issue May 13, 2020 · 0 comments

Comments

@kennethmyhra
Copy link
Collaborator

Etter sertifikatvalidering så logger man kun Remote Certificate is invalid uten detaljer rundt hva som feilet. Endre loggkallet til å logge statusen som returneres fra CertificateValidator dersom det feiler.

Dette gjelder både kryptering- og signeringsertifikatet:
https://github.com/helsenorge/Helsenorge.Messaging/blob/master/src/Helsenorge.Messaging/ServiceBus/ServiceBusCore.cs#L137

public enum CertificateErrors
{
	/// <summary>
	/// No error
	/// </summary>
	None = 0,
	/// <summary>
	/// Start date is invalid
	/// </summary>
	StartDate = 1,
	/// <summary>
	/// End date is invalid
	/// </summary>
	EndDate = 2,
	/// <summary>
	/// Certificate has incorrect usage
	/// </summary>
	Usage = 4,
	/// <summary>
	/// Certificate was revoked
	/// </summary>
	Revoked = 8,
	/// <summary>
	/// Unable to determine revocation status. Service may be unavailable
	/// </summary>
	RevokedUnknown = 16,
	/// <summary>
	/// The certificate is missing
	/// </summary>
	Missing = 32
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant